Updated .gitignore and restored misc folder with updated systemd unit file and icons
This commit is contained in:
parent
bf1e342661
commit
c6b358499d
6 changed files with 139 additions and 2 deletions
26
misc/drinks-manager.service
Normal file
26
misc/drinks-manager.service
Normal file
|
@ -0,0 +1,26 @@
|
|||
# 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
|
||||
Group=drinks
|
||||
WorkingDirectory=/srv/drinks-manager/
|
||||
# start the server:
|
||||
ExecStart=/usr/bin/bash -c "/srv/drinks-manager/start.sh"
|
||||
# stop the process with a SIGINT:
|
||||
ExecStop=/usr/bin/bash -c "/bin/kill -2 $MAINPID;"
|
||||
Restart=on-failure
|
||||
TimeoutStopSec=15s
|
||||
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