mirror of
https://git.freebsd.org/ports.git
synced 2025-06-15 09:40:35 -04:00
23 lines
361 B
Bash
23 lines
361 B
Bash
#!/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"
|