debian/errbot.service
raw| 1 | [Unit] |
| 2 | Description=Errbot chat bot |
| 3 | Documentation=http://errbot.io/en/latest/ |
| 4 | Wants=network-online.target |
| 5 | After=network-online.target |
| 6 | |
| 7 | [Service] |
| 8 | Type=exec |
| 9 | User=errbot |
| 10 | Environment=CONFIGFILE=/etc/errbot/config-template.py |
| 11 | EnvironmentFile=-/etc/default/errbot |
| 12 | WorkingDirectory=/var/lib/errbot |
| 13 | ExecStart=/usr/bin/errbot --config ${CONFIGFILE} |
| 14 | KillSignal=SIGINT |
| 15 | Restart=on-failure |
| 16 | |
| 17 | [Install] |
| 18 | WantedBy=multi-user.target |