nxy/files/nxy-bot.service

16 lines
310 B
Desktop File

[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