changed default systemd service user to 'root' to resolve permission issues
This commit is contained in:
parent
99c588ac13
commit
8d002e0d2e
1 changed files with 5 additions and 7 deletions
12
pbc.service
12
pbc.service
|
@ -1,17 +1,15 @@
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=pbc (pedal board control)
|
Description=pbc (pedal board control)
|
||||||
Requires=touchosc2midi.service
|
After=modep-mod-host.service modep-mod-ui.service modep-touchosc2midi.service
|
||||||
After=modep-mod-ui.service touchosc2midi.service
|
Wants=modep-mod-host.service modep-mod-ui.service modep-touchosc2midi.service
|
||||||
BindsTo=modep-mod-ui.service
|
BindsTo=modep-mod-ui.service
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=simple
|
Type=simple
|
||||||
User=node
|
User=root
|
||||||
Group=node
|
Group=root
|
||||||
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
|
||||||
|
|
Loading…
Reference in a new issue