1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
#!/bin/sh # PROVIDE: perlbal # REQUIRE: LOGIN # KEYWORK: shutdown . /etc/rc.subr name="perlbal" command="%%PREFIX%%/bin/perlbal" load_rc_config "$name" : ${perlbal_enable="NO"} : ${perlbal_configuration="%%PREFIX%%/etc/perlbal/perlbal.conf"} required_files="$perlbal_configuration" command_args="--config $required_files --daemon" run_rc_command "$1"