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