chen/services/chen.service
koizumi.aoi 0cb4fa3a01 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
2023-02-20 01:15:02 +00:00

18 lines
320 B
Desktop File

[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