Skip to content

Instantly share code, notes, and snippets.

@UberKitten
Created May 26, 2019 11:59
Show Gist options
  • Select an option

  • Save UberKitten/fd0c82ce599eec70e190cf84abd0fc8d to your computer and use it in GitHub Desktop.

Select an option

Save UberKitten/fd0c82ce599eec70e190cf84abd0fc8d to your computer and use it in GitHub Desktop.
Systemd py-kms service unit file
[Unit]
Description=py-kms
After=network.target
Wants=network-online.target
[Service]
# Have to use unbuffer otherwie py-kms tries to launch GUI
ExecStart=/usr/bin/unbuffer /opt/py-kms/env/bin/python3 /opt/py-kms/py-kms/py-kms/pykms_Server.py 0.0.0.0 1688 --logfile /var/log/py-kms.log -V DEBUG
Restart=always
KillMode=process
Type=idle
User=py-kms
Group=py-kms
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment