updated systemd service file

This commit is contained in:
Daniel Sommer 2022-03-25 13:55:50 +01:00
parent e3aa7cf67d
commit 99c588ac13

View file

@ -1,5 +1,8 @@
[Unit] [Unit]
Description=pbc (pedal board control) Description=pbc (pedal board control)
Requires=touchosc2midi.service
After=modep-mod-ui.service touchosc2midi.service
BindsTo=modep-mod-ui.service
[Service] [Service]
Type=simple Type=simple
@ -7,6 +10,8 @@ User=node
Group=node Group=node
WorkingDirectory=/opt/pbc WorkingDirectory=/opt/pbc
ExecStart=/opt/nvm/nvm-exec node pbc.js ExecStart=/opt/nvm/nvm-exec node pbc.js
ExecStartPost=-/usr/bin/sleep 10
ExecStartPost=-/usr/bin/oscsend localhost 12101 / m 000000b0
[Install] [Install]
WantedBy=multi-user.target WantedBy=multi-user.target