fixed open file copy problem

This commit is contained in:
Thomas von Dein 2024-12-18 09:14:26 +01:00
parent 8d7fad0060
commit 3245a141ad
2 changed files with 3 additions and 6 deletions

View File

@ -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}

View File

@ -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