优化deb和rpm包

This commit is contained in:
heavyrian2012
2022-10-21 19:12:11 +08:00
parent c0840f3a73
commit b5d884f9f6
6 changed files with 44 additions and 23 deletions
+29
View File
@@ -0,0 +1,29 @@
[Unit]
Description=WildfirechatIM
Documentation=https://docs.wildfirechat.cn
Wants=network-online.target
After=network-online.target
[Service]
WorkingDirectory=/usr/local/im-server
ProtectProc=invisible
ExecStart=/bin/sh bin/wildfirechat.sh 2>&1
# Let systemd restart this service always
Restart=always
RestartSec=5
# Specifies the maximum file descriptor number that can be opened by this process
LimitNOFILE=65536
# Specifies the maximum number of threads this process can create
TasksMax=infinity
# Disable timeout logic and wait until process is stopped
TimeoutStopSec=infinity
SendSIGKILL=no
[Install]
WantedBy=multi-user.target