blob: 04ec8209d733b4d8a7197aa3b6e6987201c01ec6 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#!/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"
|