machine_setup/ansible/roles/poudriere/files/poudboot

25 lines
479 B
Plaintext
Raw Normal View History

#!/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
2024-02-11 19:59:55 +00:00
: ${poudboot_enable:=NO}
command=/usr/sbin/daemon
pidfile=/var/run/${name}.pid
command_args="-p $pidfile -u root -f -S -T $name nice -n 10 lockf -t 0 /var/run/$name.lock /root/.cargo/bin/poudboot /opt/poudriere/poudboot.sqlite3"
export PATH="${PATH}:/usr/local/bin"
run_rc_command "$1"