mirror of https://github.com/SystemRage/py-kms.git
Create systemd_py-kms.conf
The wiki stated the following sentence "you can also create a daemon with systemd" - and thats what I did! The service works fine, except for the log file. It doesn't append anything to the log file specified.
This commit is contained in:
parent
19ef51a6db
commit
8104ee75d4
|
@ -0,0 +1,18 @@
|
|||
## Py-kms systemd config file
|
||||
|
||||
# sudo nano /etc/systemd/system/py-kms.conf
|
||||
|
||||
[Unit]
|
||||
Description=py-kms
|
||||
|
||||
[Service]
|
||||
Environment= PYTHON_HOME=/<dir> =PATH=$PYTHON_HOME:$PATH
|
||||
WorkingDirectory=YOUR PY-KMS LOCATION HERE
|
||||
ExecStart=/usr/bin/python3 pykms_Server.py "0.0.0.0 1688 -v DEBUG --logfile /var/log/pykms_logserver.log"
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
||||
# systemctl daemon-reload
|
||||
# systemctl enable py-kms.service
|
||||
# systemctl start py-kms.service
|
Loading…
Reference in New Issue