forked from pool/powerman
Stanislav Brabec
3d43617f6b
- Update to version 2.3.9: * Add MIB support to snmppower. * Add eaton-epdu-blue-switched.dev. * Add support for SNMP power controllers. * Add SNMP dev files for 8-port APC, 8-port Baytech, and 20 port Eaton Revelation PDU. * Add support for APC 7900 revision 3 firmware. * Add support for Appro Greenblade. * Add support for APC 7920. * Add Support for ranged beacon on/off device scripts, and beacon support for ipmipower. - Make heartbeat support optional as it is dropped now. OBS-URL: https://build.opensuse.org/request/show/77369 OBS-URL: https://build.opensuse.org/package/show/hardware/powerman?expand=0&rev=19
25 lines
663 B
Diff
25 lines
663 B
Diff
--- scripts/powerman.in
|
|
+++ scripts/powerman.in
|
|
@@ -34,7 +34,8 @@
|
|
DAEMON="$sbindir/powermand"
|
|
#DAEMON_ARGS=
|
|
CONFIG=$sysconfdir/powerman/powerman.conf
|
|
-PIDFILE="$localstatedir/run/powerman/powermand.pid"
|
|
+PIDDIR="$localstatedir/run/powerman"
|
|
+PIDFILE="$PIDDIR/powermand.pid"
|
|
#NICE=
|
|
USER=@RUN_AS_USER@
|
|
#SIGHUP_RELOAD=
|
|
@@ -53,7 +54,10 @@
|
|
SCRIPT_NAME="`basename \"$0\" .init | sed 's/^[SK][0-9][0-9]*//'`"
|
|
SIGTERM_TIMEOUT="3"
|
|
STATUS=0
|
|
-
|
|
+ if [ ! -d "$PIDDIR" ] ; then
|
|
+ mkdir "$PIDDIR"
|
|
+ chown $USER $PIDDIR
|
|
+ fi
|
|
# Read configuration defaults to override variables:
|
|
# $DAEMON_ARGS, $CONFIG, $PIDFILE, $USER, $NICE, $SIGHUP_RELOAD
|
|
##
|