Add some init scripts
Signed-off-by: Shin'ya Minazuki <shinyoukai@laidback.moe>
This commit is contained in:
4
init.d/dinit
Normal file
4
init.d/dinit
Normal 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
19
init.d/netbsd
Normal 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"
|
||||||
Reference in New Issue
Block a user