feat: add systemd unit - note, it SHOULD be run as a regular user and SHOULD also not be in /lib/systemd/system
git-svn-id: file:///srv/svn/repo/chen/trunk@18 32723744-9b23-0b4a-b1da-9b2e968f9461
This commit is contained in:
parent
5168564002
commit
0cb4fa3a01
17
services/chen.service
Normal file
17
services/chen.service
Normal file
@ -0,0 +1,17 @@
|
||||
[Unit]
|
||||
Description=XMPP bot to preview links and file contents
|
||||
After=network.target
|
||||
After=prosody.service
|
||||
After=ejabberd.service
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
Restart=always
|
||||
RestartSec=10
|
||||
StartLimitBurst=5
|
||||
StartLimitInterval=100
|
||||
WorkingDirectory=%h/chen/
|
||||
ExecStart=/usr/bin/python main.py
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
Loading…
x
Reference in New Issue
Block a user