mirror of
https://github.com/de2tla2f/pymaster.git
synced 2024-10-31 18:17:17 +00:00
Add basic systemd service
This commit is contained in:
parent
033bb35e0f
commit
c6e95fd7f2
2
etc/default/pymaster
Normal file
2
etc/default/pymaster
Normal file
|
@ -0,0 +1,2 @@
|
|||
PYMASTER_IP=0.0.0.0
|
||||
PYMASTER_PORT=27010
|
16
etc/systemd/system/pymaster.service
Normal file
16
etc/systemd/system/pymaster.service
Normal file
|
@ -0,0 +1,16 @@
|
|||
[Unit]
|
||||
Description=Xash3D Master Server
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
EnvironmentFile=-/etc/default/pymaster
|
||||
User=master
|
||||
Group=master
|
||||
WorkingDirectory=/home/master/pymaster/
|
||||
ExecStart=/home/master/pymaster/pymaster.py -i $PYMASTER_IP -p $PYMASTER_PORT
|
||||
Restart=on-failure
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
Loading…
Reference in a new issue