mirror of
https://git.freebsd.org/ports.git
synced 2025-05-01 02:56:39 -04:00
21 lines
343 B
Bash
21 lines
343 B
Bash
#!/bin/sh
|
|
|
|
# PROVIDE: openupsd
|
|
# REQUIRE: LOGIN
|
|
# KEYWORD: shutdown
|
|
|
|
openupsd_enable=${openupsd_enable:-"NO"}
|
|
|
|
. /etc/rc.subr
|
|
|
|
name="openupsd"
|
|
rcvar=openupsd_enable
|
|
|
|
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"
|