Bug#924640: tt-rss: initscript tt-rss action "stop" failed

2019-05-17 Thread Trek
Control: tag -1 patch

this (untested) patch should fix the issue

ciao!
diff -urN a/debian/tt-rss.init b/debian/tt-rss.init
--- a/debian/tt-rss.init	2019-05-17 17:47:08.174896466 +0200
+++ b/debian/tt-rss.init	2019-05-17 17:52:21.938887893 +0200
@@ -79,7 +79,7 @@
 	#   1 if daemon was already stopped
 	#   2 if daemon could not be stopped
 	#   other if a failure occurred
-	start-stop-daemon --stop --quiet --retry=TERM/1/KILL/5 --pidfile $PIDFILE
+	start-stop-daemon --stop --quiet --retry=TERM/1/KILL/5 --pidfile $PIDFILE --exec $DAEMON --user www-data
 	RETVAL="$?"
 	[ "$RETVAL" = 2 ] && return 2
 	# Wait for children to finish too if this is a daemon that forks
@@ -88,7 +88,7 @@
 	# that waits for the process to drop all resources that could be
 	# needed by services started subsequently.  A last resort is to
 	# sleep for some time.
-	start-stop-daemon --stop --quiet --oknodo --retry=0/1/KILL/5 --exec $DAEMON
+	start-stop-daemon --stop --quiet --oknodo --retry=0/1/KILL/5 --exec $DAEMON --user www-data
 	[ "$?" = 2 ] && return 2
 	# Many daemons don't delete their pidfiles when they exit.
 	rm -f $PIDFILE


Bug#924640: tt-rss: initscript tt-rss action "stop" failed

2019-03-15 Thread sergio
Package: tt-rss
Version: 18.12+dfsg-1
Severity: important

After upgrade to buster I start receiving cron daily letters.

/etc/cron.daily/logrotate:
start-stop-daemon: matching only on non-root pidfile 
/var/lib/tt-rss/update_daemon.lock is insecure
invoke-rc.d: initscript tt-rss, action "stop" failed.
error: error running non-shared prerotate script for /var/log/tt-rss.log of 
'/var/log/tt-rss.log '
run-parts: /etc/cron.daily/logrotate exited with return code 1

Manual stop also doesn't work:

# /etc/init.d/tt-rss stop
[] Stopping Tiny Tiny RSS update daemon: tt-rssstart-stop-daemon: matching 
only on non-root pidfile /var/lib/tt-rss/update_daemon.lock is insecure
 failed!

# invoke-rc.d tt-rss stop 
[] Stopping Tiny Tiny RSS update daemon: tt-rssstart-stop-daemon: matching 
only on non-root pidfile /var/lib/tt-rss/update_daemon.lock is insecure
 failed!
invoke-rc.d: initscript tt-rss, action "stop" failed.