feat: add systemd unit - note, it SHOULD be run as a regular user and SHOULD also not be in /lib/systemd/system
このコミットが含まれているのは:
コミット
7e36d03e36
|
@ -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
|
読み込み中…
新しいイシューから参照