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.

Revisions

  1. UberKitten created this gist May 26, 2019.
    16 changes: 16 additions & 0 deletions py-kms.service
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,16 @@
    [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