mirror of
https://github.com/Mercantec-GHC/h4-projekt-gruppe-0-sm.git
synced 2025-04-27 16:24:07 +02:00
use root systemd
This commit is contained in:
parent
7a34578981
commit
d9dc6e67b7
@ -3,8 +3,7 @@ Description=H4 Backend
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
#User=
|
||||
#Group=
|
||||
User=host
|
||||
ExecStart=/home/host/h4-projekt-gruppe-0-sm/backend/build/server
|
||||
Restart=on-failure
|
||||
RestartSec=10
|
||||
|
@ -4,11 +4,9 @@ SERVICE=h4backend.service
|
||||
|
||||
set -xe
|
||||
|
||||
sudo cp deploy/$SERVICE /etc/systemd/user/$SERVICE
|
||||
systemctl --user daemon-reload
|
||||
|
||||
systemctl --user enable $SERVICE
|
||||
systemctl --user start $SERVICE
|
||||
|
||||
sudo cp deploy/$SERVICE /etc/systemd/$SERVICE
|
||||
systemctl daemon-reload
|
||||
|
||||
systemctl enable $SERVICE
|
||||
systemctl start $SERVICE
|
||||
|
||||
|
@ -4,10 +4,10 @@ SERVICE=h4backend.service
|
||||
|
||||
set -xe
|
||||
|
||||
systemctl --user stop $SERVICE
|
||||
systemctl --user disable $SERVICE
|
||||
systemctl stop $SERVICE
|
||||
systemctl disable $SERVICE
|
||||
|
||||
sudo rm /etc/systemd/user/$SERVICE
|
||||
sudo rm /etc/systemd/$SERVICE
|
||||
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user