Control: tag -1 patch

this patch should fix the issue

ciao!
diff -urN a/debian/lprng.init.in b/debian/lprng.init.in
--- a/debian/lprng.init.in	2012-06-11 09:47:19.000000000 +0200
+++ b/debian/lprng.init.in	2019-05-17 16:54:10.750983282 +0200
@@ -106,7 +106,8 @@
 	;;
   stop)
 	[ "$VERBOSE" != no ] && log_daemon_msg "Stopping $DESC" lpd
-	if start-stop-daemon --stop --oknodo --quiet --pidfile "${PIDFILE}" ; then
+	if start-stop-daemon --stop --oknodo --quiet --pidfile "${PIDFILE}" \
+		--exec $DAEMON --user daemon ; then
 		cleanup
 		[ "$VERBOSE" != no ] && log_end_msg 0
 	else
@@ -129,7 +130,8 @@
   	;;
   restart|force-reload)
 	[ "$VERBOSE" != no ] && log_daemon_msg "Restarting $DESC" lpd
-	start-stop-daemon --stop --quiet --pidfile "${PIDFILE}" 
+	start-stop-daemon --stop --quiet --pidfile "${PIDFILE}" \
+	    --exec $DAEMON --user daemon
 	sleep 1
 	initialise
 	start-stop-daemon --start --quiet --pidfile "${PIDFILE}" \

Reply via email to