From 99c588ac130b912cf8042d892b1553bc9d93c62a Mon Sep 17 00:00:00 2001 From: velvettear Date: Fri, 25 Mar 2022 13:55:50 +0100 Subject: [PATCH] updated systemd service file --- pbc.service | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pbc.service b/pbc.service index 226dd90..f880682 100644 --- a/pbc.service +++ b/pbc.service @@ -1,5 +1,8 @@ [Unit] Description=pbc (pedal board control) +Requires=touchosc2midi.service +After=modep-mod-ui.service touchosc2midi.service +BindsTo=modep-mod-ui.service [Service] Type=simple @@ -7,6 +10,8 @@ User=node Group=node WorkingDirectory=/opt/pbc ExecStart=/opt/nvm/nvm-exec node pbc.js +ExecStartPost=-/usr/bin/sleep 10 +ExecStartPost=-/usr/bin/oscsend localhost 12101 / m 000000b0 [Install] WantedBy=multi-user.target \ No newline at end of file