From 8d002e0d2e70f260126b1646a9a40ac5d0d65f55 Mon Sep 17 00:00:00 2001 From: velvettear Date: Fri, 25 Mar 2022 16:25:59 +0100 Subject: [PATCH] changed default systemd service user to 'root' to resolve permission issues --- pbc.service | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/pbc.service b/pbc.service index f880682..5dc4544 100644 --- a/pbc.service +++ b/pbc.service @@ -1,17 +1,15 @@ [Unit] Description=pbc (pedal board control) -Requires=touchosc2midi.service -After=modep-mod-ui.service touchosc2midi.service +After=modep-mod-host.service modep-mod-ui.service modep-touchosc2midi.service +Wants=modep-mod-host.service modep-mod-ui.service modep-touchosc2midi.service BindsTo=modep-mod-ui.service [Service] Type=simple -User=node -Group=node +User=root +Group=root 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 +WantedBy=multi-user.target