1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
#!/bin/sh # # $FreeBSD$ # # PROVIDE: openupsd # REQUIRE: LOGIN # KEYWORD: FreeBSD shutdown openupsd_enable=${openupsd_enable:-"NO"} . %%RC_SUBR%% name="openupsd" rcvar=`set_rcvar` pidfile=/var/run/${name}.pid required_files=%%PREFIX%%/etc/${name}.conf command=%%PREFIX%%/sbin/openupsd command_args="-p ${pidfile}" load_rc_config $name run_rc_command "$1"