changed default systemd service user to 'root' to resolve permission issues

This commit is contained in:
Daniel Sommer 2022-03-25 16:25:59 +01:00
parent 99c588ac13
commit 8d002e0d2e

View file

@ -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