summaryrefslogtreecommitdiff
path: root/sysutils/nut22/files/nut.in
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2014-09-02 10:07:49 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2014-09-02 10:07:49 +0000
commit38a0a8023026a77ded1e6de618b567c7b58e79a4 (patch)
treeabf5fbbdc4b27a245ff76b9850f4eb6e73e4ba19 /sysutils/nut22/files/nut.in
parent- Fix build with GCRYPT option by taking out -Werror (diff)
Remove non staged ports without pending PR from s*
Notes
Notes: svn path=/head/; revision=366980
Diffstat (limited to 'sysutils/nut22/files/nut.in')
-rw-r--r--sysutils/nut22/files/nut.in44
1 files changed, 0 insertions, 44 deletions
diff --git a/sysutils/nut22/files/nut.in b/sysutils/nut22/files/nut.in
deleted file mode 100644
index aaf33c5b18b0..000000000000
--- a/sysutils/nut22/files/nut.in
+++ /dev/null
@@ -1,44 +0,0 @@
-#!/bin/sh
-#
-# $FreeBSD$
-#
-
-# PROVIDE: nut
-# REQUIRE: NETWORKING
-# BEFORE: LOGIN
-# KEYWORD: shutdown
-
-# Define these nut_* variables in one of these files:
-# /etc/rc.conf
-# /etc/rc.conf.local
-# /etc/rc.conf.d/nut
-#
-# DO NOT CHANGE THESE DEFAULT VALUES HERE
-#
-nut_enable=${nut_enable-"NO"}
-nut_prefix=${nut_prefix-"%%PREFIX%%"}
-
-. /etc/rc.subr
-
-name="nut"
-rcvar=nut_enable
-
-load_rc_config $name
-
-required_dirs="%%STATEDIR%%"
-required_files="${nut_prefix}/etc/nut/ups.conf ${nut_prefix}/etc/nut/upsd.conf ${nut_prefix}/etc/nut/upsd.users"
-command="${nut_prefix}/sbin/upsd"
-pidfile="%%STATEDIR%%/upsd.pid"
-
-start_precmd="nut_prestart"
-stop_postcmd="nut_poststop"
-
-nut_prestart() {
- ${nut_prefix}/libexec/nut/upsdrvctl start
-}
-
-nut_poststop() {
- ${nut_prefix}/libexec/nut/upsdrvctl stop
-}
-
-run_rc_command "$1"