Bug#926660: Patch to make webfs stoppable again

2024-05-15 Thread Sebastien KOECHLIN
The /etc/logrotate.d/webfs file should probably be patched the same way:

May 15 00:00:00 X systemd[1]: Starting Rotate log files...
May 15 00:00:00 X logrotate[34644]: start-stop-daemon: matching only on 
non-root pidfile /var/run/webfs/webfsd.pid is insecure
May 15 00:00:00 X logrotate[34637]: error: error running non-shared postrotate 
script for /var/log/webfs/webfs.log of '/var/log/webfs/webfs.log '
May 15 00:00:00 X systemd[1]: logrotate.service: Main process exited, 
code=exited, status=1/FAILURE
May 15 00:00:00 X systemd[1]: logrotate.service: Failed with result 'exit-code'.
May 15 00:00:00 X systemd[1]: Failed to start Rotate log files.



Bug#926660: Patch to make webfs stoppable again

2019-11-04 Thread Bjoern Jacke
attached patch for the init script fixes this. As the package maintainer
does not pop up here, can some Debain Deveoper please make a NMU based
on this patch?
--- debian/webfs.init.old	2019-11-04 22:48:01.637076220 +0100
+++ debian/webfs.init	2019-11-04 22:49:19.481197962 +0100
@@ -73,13 +73,13 @@
 	;;
 stop)
 	log_daemon_msg "Stopping httpd daemon" "$NAME"
-	start-stop-daemon --stop --quiet --oknodo --pidfile $pidfile
+	start-stop-daemon --stop --quiet --oknodo --user $web_user --pidfile $pidfile
 	log_end_msg $?
 	rm -f $pidfile || true
 	;;
 restart|force-reload)
 	log_daemon_msg "Re-starting httpd daemon" "$NAME"
-	start-stop-daemon --stop --quiet --oknodo --pidfile $pidfile
+	start-stop-daemon --stop --quiet --oknodo --user $web_user --pidfile $pidfile
 	rm -f $pidfile || true
 	start-stop-daemon --start --quiet --pidfile $pidfile \
 		--exec $DAEMON -- $ARGS