Make poudboot service file not hang startup by launching with daemon.
This commit is contained in:
parent
c61d4bdc75
commit
fb759470f5
@ -1,23 +1,24 @@
|
||||
#!/bin/sh
|
||||
# /usr/local/etc/rc.d/poudboot
|
||||
#
|
||||
# REQUIRE: FILESYSTEM kld
|
||||
# PROVIDE: poudboot
|
||||
# REQUIRE: FILESYSTEM kld
|
||||
# AFTER: netif
|
||||
# KEYWORD: shutdown
|
||||
|
||||
. /etc/rc.subr
|
||||
|
||||
name=poudboot
|
||||
rcvar=${name}_enable
|
||||
start_cmd="${name}_start"
|
||||
stop_cmd="${name}_stop"
|
||||
desc="Poudriere Loop"
|
||||
|
||||
load_rc_config $name
|
||||
|
||||
poudboot_start() {
|
||||
PATH="${PATH}:/usr/local/bin" /usr/local/bin/poudboot start
|
||||
}
|
||||
: ${poudboot_enable:=YES}
|
||||
|
||||
poudboot_stop() {
|
||||
PATH="${PATH}:/usr/local/bin" /usr/local/bin/poudboot stop
|
||||
}
|
||||
command=/usr/sbin/daemon
|
||||
command_dendrite=poudboot
|
||||
pidfile=/var/run/${name}.pid
|
||||
|
||||
command_args="-P $pidfile -u root -f -S -T $name poudboot start"
|
||||
|
||||
run_rc_command "$1"
|
||||
|
Loading…
x
Reference in New Issue
Block a user