Browse Source

Add basic systemd service

pull/4/head
Alibek Omarov 4 years ago
parent
commit
c6e95fd7f2
  1. 2
      etc/default/pymaster
  2. 16
      etc/systemd/system/pymaster.service

2
etc/default/pymaster

@ -0,0 +1,2 @@ @@ -0,0 +1,2 @@
PYMASTER_IP=0.0.0.0
PYMASTER_PORT=27010

16
etc/systemd/system/pymaster.service

@ -0,0 +1,16 @@ @@ -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…
Cancel
Save