1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/simplex_ynh.git synced 2024-09-03 20:26:28 +02:00
This commit is contained in:
Éric Gaspar 2023-05-23 16:41:04 +02:00
parent 5b8bf094ed
commit 53d6e94b51

View file

@ -1,5 +1,5 @@
[Unit]
Description=SimpleX: Messaging Protocol Server
Description=XFTP server systemd service
After=network.target
[Service]
@ -7,10 +7,11 @@ Type=simple
User=__APP__
Group=__APP__
WorkingDirectory=__INSTALL_DIR__/
ExecStart=__INSTALL_DIR__/xftp-server start
Restart=always
RestartSec=3
ExecStart=__INSTALL_DIR__/xftp-server start +RTS -N -RTS
#ExecStopPost=/usr/bin/env sh -c '[ -e "/var/opt/simplex-xftp/file-server-store.log" ] && cp "/var/opt/simplex-xftp/file-server-store.log" "/var/opt/simplex-xftp/file-server-store.log.$(date +'%FT%T')"'
LimitNOFILE=65535
KillSignal=SIGINT
TimeoutStopSec=infinity
# Sandboxing options to harden security
# Depending on specificities of your service/app, you may need to tweak these