feat: add systemd unit - note, it SHOULD be run as a regular user and SHOULD also not be in /lib/systemd/system

このコミットが含まれているのは:
Aoi K 2023-02-19 22:15:02 -03:00
コミット 7e36d03e36
1個のファイルの変更17行の追加0行の削除

17
services/chen.service ノーマルファイル
ファイルの表示

@ -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