Rename example systemd service file
This commit is contained in:
parent
672f7d6a80
commit
97462c7884
1 changed files with 0 additions and 0 deletions
25
misc/drinks-manager.service
Normal file
25
misc/drinks-manager.service
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue