Add some init scripts

Signed-off-by: Shin'ya Minazuki <shinyoukai@laidback.moe>
This commit is contained in:
2026-01-07 20:19:08 -03:00
parent e4d9b92061
commit ed4be2f1a4
2 changed files with 23 additions and 0 deletions

4
init.d/dinit Normal file
View File

@@ -0,0 +1,4 @@
# $YakumoLabs$
type = process
command = /usr/local/bin/efsldap -c /usr/local/etc/efsldap.ini
restart = on-failure

19
init.d/netbsd Normal file
View File

@@ -0,0 +1,19 @@
#!/bin/sh
# $YakumoLabs$
#
# PROVIDE: efsldap
# REQUIRE: NETWORKING DAEMON
# BEFORE: LOGIN
# KEYWORD: shutdown
. /etc/rc.subr
name="efsldap"
rcvar="${name}"
pidfile="/var/run/efsldap.pid"
command="/usr/pkg/sbin/daemonize"
command_args="-p ${pidfile} /usr/pkg/bin/${name} -c /usr/pkg/etc/${name}.ini"
load_rc_config ${name}
run_rc_command "$1"