machine_setup/ansible/roles/poudriere/files/poudboot
2023-07-14 14:28:36 -04:00

25 lines
395 B
Bash

#!/bin/sh
#
# PROVIDE: poudboot
# REQUIRE: FILESYSTEM kld
# AFTER: netif
# KEYWORD: shutdown
. /etc/rc.subr
name=poudboot
rcvar=${name}_enable
desc="Poudriere Loop"
load_rc_config $name
: ${poudboot_enable:=YES}
command=/usr/sbin/daemon
pidfile=/var/run/${name}.pid
command_args="-p $pidfile -u root -f -S -T $name poudboot start"
export PATH="${PATH}:/usr/local/bin"
run_rc_command "$1"