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:
parent
138e53e4d4
commit
ffc3e0ffe7
17
systemd-unit-file
Normal file
17
systemd-unit-file
Normal 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
|
Loading…
x
Reference in New Issue
Block a user