Rename example systemd service file

This commit is contained in:
W13R 2022-05-29 15:31:44 +02:00
parent 672f7d6a80
commit 97462c7884

View file

@ -0,0 +1,25 @@
# This is a sample service file for drinks manager
[Unit]
After=network.target network-online.target
Requires=network-online.target
Description=Drinks Manager
[Service]
User=drinks-manager
Group=drinks-manager
WorkingDirectory=/srv/drinks-manager/
# start the server:
ExecStart=/usr/bin/bash -c "/srv/drinks-manager/run.sh server"
# stop the process with a SIGINT:
ExecStop=/usr/bin/bash -c "/bin/kill -2 $MAINPID; /usr/bin/sleep 10"
Restart=on-failure
TimeoutStopSec=40s
LimitNPROC=512
LimitNOFILE=1048576
AmbientCapabilities=CAP_NET_BIND_SERVICE
PrivateTmp=true
ProtectSystem=full
[Install]
WantedBy=multi-user.target