SystemRage / py-kms

KMS Server Emulator written in Python
The Unlicense
2.05k stars 628 forks source link

py-kms as a daemon for ubuntu 14.04LTS #1

Closed ghost closed 6 years ago

ghost commented 6 years ago

nano /etc/init/py-kms.conf

description "py-kms"
author  "myanaloglife"
env PYTHON_HOME=/<dir>
env PATH=$PYTHON_HOME:$PATH
start on runlevel [2345]
stop on runlevel [016]
chdir <path to py-kms>
exec $PYTHON_HOME/bin/python server.py <server address> <server port> -v DEBUG --logfile /var/log/py-kms_server.log
respawn

initctl reload-configuration start py-kms

SystemRage commented 6 years ago

Added this method that uses Upstart to wiki. To remember that can also be created a service with SysV and systemd if distro allows it.