From 3245a141adc9aa1a37b0949cd767ea9ab01b810c Mon Sep 17 00:00:00 2001 From: Thomas von Dein Date: Wed, 18 Dec 2024 09:14:26 +0100 Subject: [PATCH] fixed open file copy problem --- roles/chat/files/devzat | 7 +------ roles/chat/templates/Bastillefile.j2 | 2 ++ 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/roles/chat/files/devzat b/roles/chat/files/devzat index b42362e..cd2f9ba 100644 --- a/roles/chat/files/devzat +++ b/roles/chat/files/devzat @@ -7,20 +7,15 @@ . /etc/rc.subr -prestart() { - cp -prP ${devzat_source} ${devzat_command} -} - name="devzat" rcvar="devzat_enable" devzat_user="nobody" devzat_source="/usr/local/sbin/devzat" -devzat_command="/usr/local/sbin/devzat.run" +devzat_command="/usr/local/sbin/devzat" pidfile="/tmp/${name}.pid" command="/usr/sbin/daemon" command_args="-P ${pidfile} -c ${devzat_command}" devzat_config="/usr/local/etc/devzat.yml" -start_precmd="prestart" load_rc_config $name : ${devzat_enable:=no} diff --git a/roles/chat/templates/Bastillefile.j2 b/roles/chat/templates/Bastillefile.j2 index c7a5091..5fa0eff 100644 --- a/roles/chat/templates/Bastillefile.j2 +++ b/roles/chat/templates/Bastillefile.j2 @@ -1,5 +1,7 @@ SERVICE devzat stop +CMD if [ -f /usr/local/sbin/devzat ]; then rm -f /usr/local/sbin/devzat; fi + SYSRC sendmail_enable=NONE SYSRC tmpsize=500m SYSRC tmpmfs=AUTO