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:
pojlFDlxCOvZ4Kg8y1l4 2020-05-08 04:46:37 +02:00 committed by GitHub
parent 19ef51a6db
commit 8104ee75d4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 18 additions and 0 deletions

View File

@ -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