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
|
2017-08-22 19:45:26 +00:00
|
|
|
Environment=CFG_FILE=config.json
|
|
|
|
Environment=ENV_FILE=.env
|
2017-08-21 16:17:13 +00:00
|
|
|
WorkingDirectory=/home/nxy
|
2017-08-22 19:45:26 +00:00
|
|
|
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
|