1
0
mirror of https://github.com/ThunderEX/py-kms.git synced 2025-04-18 07:44:00 +03:00

Add systemd unit file

This commit is contained in:
procknight 2018-10-20 16:15:56 +02:00 committed by GitHub
parent 138e53e4d4
commit ffc3e0ffe7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

17
systemd-unit-file Normal file
View File

@ -0,0 +1,17 @@
# systemd unit file, copy to /etc/systemd/system/pykms.service
# adjust WorkingDirectory
# "systemctl start pykms" to start
# "systemctl enable pykms" to auto-start
[Unit]
Description=py-kms Key Management Server for Microsoft products
After=network.target
[Service]
WorkingDirectory=/path/to/py-kms/
ExecStart=/usr/bin/python server.py
User=nobody
Group=nogroup
[Install]
WantedBy=multi-user.target