diff options
Diffstat (limited to 'sysutils/openupsd/files/openupsd.sh')
-rw-r--r-- | sysutils/openupsd/files/openupsd.sh | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/sysutils/openupsd/files/openupsd.sh b/sysutils/openupsd/files/openupsd.sh index d5610a224146..a203c9f968d4 100644 --- a/sysutils/openupsd/files/openupsd.sh +++ b/sysutils/openupsd/files/openupsd.sh @@ -13,18 +13,11 @@ openupsd_enable=${openupsd_enable:-"NO"} name="openupsd" rcvar=`set_rcvar` -start_cmd="${name}_start" -stop_cmd="${name}_stop" +pidfile=/var/run/${name}.pid +required_files=%%PREFIX%%/etc/${name}.conf -openupsd_start() -{ - %%PREFIX%%/sbin/openupsd -} - -openupsd_stop() -{ - killall openupsd -} +command=%%PREFIX%%/sbin/openupsd +command_args="-p ${pidfile}" load_rc_config $name run_rc_command "$1" |