nxy/files/nxy-bot.service

16 lines
310 B
SYSTEMD
Raw Normal View History

2017-07-04 13:22:20 +00:00
[Unit]
Description=nxy python irc bot
2017-07-31 13:29:59 +00:00
After=network.target
2017-07-04 13:22:20 +00:00
[Service]
Type=simple
2017-07-31 13:29:59 +00:00
Restart=always
Environment=PYTHONPATH=%h/nxy
Environment=CFG_FILE=config.json
Environment=ENV_FILE=.env
2017-08-21 16:17:13 +00:00
WorkingDirectory=/home/nxy
ExecStart=/home/nxy/env/bin/python -m bot $CFG_FILE $ENV_FILE
2017-07-04 13:22:20 +00:00
[Install]
2017-07-31 13:29:59 +00:00
WantedBy=default.target