slackbuilds_ponce/system/apcupsd/patches/create_lockdir_in_init_script.diff
Robby Workman 390288c14d system/apcupsd: Updated for version 3.14.13.
Thanks to Sebastian Arcus, Ben Stern, and Marcos Tadeu for
gentle reminders with fixes for the new version :-)

Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
2015-08-22 23:42:10 +07:00

11 lines
474 B
Diff

diff -Nur apcupsd-3.14.13.orig/platforms/slackware/apcupsd.in apcupsd-3.14.13/platforms/slackware/apcupsd.in
--- apcupsd-3.14.13.orig/platforms/slackware/apcupsd.in 2015-01-29 08:13:25.000000000 -0600
+++ apcupsd-3.14.13/platforms/slackware/apcupsd.in 2015-08-17 22:49:30.754638339 -0500
@@ -20,6 +20,7 @@
if [ -f ${APCPID} ]; then
return=" Already running."
else
+ mkdir -p @LOCKDIR@
@sbindir@/apcupsd && touch @LOCKDIR@/apcupsd \
|| return=" Failed."
fi