fixed devzat rc script, user creation with skell, +new todo

This commit is contained in:
2024-12-16 16:10:11 +01:00
parent e6baefdbd5
commit 8d7fad0060
4 changed files with 37 additions and 14 deletions

View File

@@ -7,17 +7,24 @@
. /etc/rc.subr
prestart() {
cp -prP ${devzat_source} ${devzat_command}
}
name="devzat"
rcvar="devzat_enable"
devzat_user="nobody"
devzat_command="/usr/local/sbin/devzat"
devzat_source="/usr/local/sbin/devzat"
devzat_command="/usr/local/sbin/devzat.run"
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}
export DEVZAT_CONFIG="${devzat_config}"
run_rc_command "$1"