fixed open file copy problem
This commit is contained in:
parent
8d7fad0060
commit
3245a141ad
@ -7,20 +7,15 @@
|
|||||||
|
|
||||||
. /etc/rc.subr
|
. /etc/rc.subr
|
||||||
|
|
||||||
prestart() {
|
|
||||||
cp -prP ${devzat_source} ${devzat_command}
|
|
||||||
}
|
|
||||||
|
|
||||||
name="devzat"
|
name="devzat"
|
||||||
rcvar="devzat_enable"
|
rcvar="devzat_enable"
|
||||||
devzat_user="nobody"
|
devzat_user="nobody"
|
||||||
devzat_source="/usr/local/sbin/devzat"
|
devzat_source="/usr/local/sbin/devzat"
|
||||||
devzat_command="/usr/local/sbin/devzat.run"
|
devzat_command="/usr/local/sbin/devzat"
|
||||||
pidfile="/tmp/${name}.pid"
|
pidfile="/tmp/${name}.pid"
|
||||||
command="/usr/sbin/daemon"
|
command="/usr/sbin/daemon"
|
||||||
command_args="-P ${pidfile} -c ${devzat_command}"
|
command_args="-P ${pidfile} -c ${devzat_command}"
|
||||||
devzat_config="/usr/local/etc/devzat.yml"
|
devzat_config="/usr/local/etc/devzat.yml"
|
||||||
start_precmd="prestart"
|
|
||||||
|
|
||||||
load_rc_config $name
|
load_rc_config $name
|
||||||
: ${devzat_enable:=no}
|
: ${devzat_enable:=no}
|
||||||
|
|||||||
@ -1,5 +1,7 @@
|
|||||||
SERVICE devzat stop
|
SERVICE devzat stop
|
||||||
|
|
||||||
|
CMD if [ -f /usr/local/sbin/devzat ]; then rm -f /usr/local/sbin/devzat; fi
|
||||||
|
|
||||||
SYSRC sendmail_enable=NONE
|
SYSRC sendmail_enable=NONE
|
||||||
SYSRC tmpsize=500m
|
SYSRC tmpsize=500m
|
||||||
SYSRC tmpmfs=AUTO
|
SYSRC tmpmfs=AUTO
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user