From 72fa9ea28799113315d9a86c962c7859d9da3a13 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Tue, 23 May 2023 19:23:48 +0200 Subject: [PATCH] fix --- conf/systemd.service | 1 + conf/xftp.systemd.service | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/conf/systemd.service b/conf/systemd.service index 0db7783..0e15cd5 100644 --- a/conf/systemd.service +++ b/conf/systemd.service @@ -8,6 +8,7 @@ User=__APP__ Group=__APP__ WorkingDirectory=__INSTALL_DIR__/ ExecStart=__INSTALL_DIR__/smp-server start +ExecStopPost=/usr/bin/env sh -c '[ -e "/var/opt/simplex/file-server-store.log" ] && cp "/var/opt/simplex/file-server-store.log" "/var/opt/simplex/file-server-store.log.$(date +'%FT%T')"' Restart=always RestartSec=3 KillSignal=SIGINT diff --git a/conf/xftp.systemd.service b/conf/xftp.systemd.service index 744dd01..a2057c9 100644 --- a/conf/xftp.systemd.service +++ b/conf/xftp.systemd.service @@ -9,7 +9,7 @@ User=__APP__ Group=__APP__ WorkingDirectory=__INSTALL_DIR__/ 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')"' +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