[Unit] Description=nxy python irc bot After=network.target [Service] Type=simple Restart=always Environment=PYTHONPATH=%h/nxy Environment=CFG_FILE=config.json Environment=ENV_FILE=.env WorkingDirectory=/home/nxy ExecStart=/home/nxy/env/bin/python -m bot $CFG_FILE $ENV_FILE [Install] WantedBy=default.target