changeset 1147:ef803d8555ec

print/cups: create /var/run/cups in init script
author David Demelier <markand@malikania.fr>
date Tue, 24 Sep 2019 21:14:00 +0000
parents 815d267adb72
children d7b018839eaa
files print/cups/cupsd
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/print/cups/cupsd	Tue Sep 24 21:11:00 2019 +0000
+++ b/print/cups/cupsd	Tue Sep 24 21:14:00 2019 +0000
@@ -27,11 +27,13 @@
 
 cupsd_start()
 {
+	mkdir -p $(dirname $CUPSD_PID)
+
 	if [ -s $CUPSD_PID ]; then
 		echo "cupsd is already running with pid: $(cat $CUPSD_PID)"
 	else
 		echo "Starting cupsd: $CUPSD_CMD $CUPSD_ARGS"
-		$CUPSD_CMD $CUPSD_ARGS -p $CUPSD_PID
+		$CUPSD_CMD $CUPSD_ARGS
 	fi
 }