Closed ghost closed 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
initctl reload-configuration
start py-kms
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.
nano /etc/init/py-kms.conf
initctl reload-configuration
start py-kms