nxy/files/nxy-bot.service

16 lines
296 B
SYSTEMD
Raw Permalink 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
2020-10-06 16:29:57 +00:00
WorkingDirectory=%h
ExecStart=%h/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