summaryrefslogtreecommitdiff
path: root/system/apcupsd/patches/create_lockdir_in_init_script.diff
blob: 024ac6d4cbe91c9b6b972a1a9d4073255891ae1d (plain)
1
2
3
4
5
6
7
8
9
10
11
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