Am 2015-04-21 15:15, schrieb Jonas Meurer:
See the attached patch for a proper fix.I attached an updated patch.
Argh, this time with the updated patch :) Cheers, jonas
diff -rNu smstools-3.1.15.orig/debian/changelog smstools-3.1.15/debian/changelog --- smstools-3.1.15.orig/debian/changelog 2015-04-20 11:46:00.000000000 +0200 +++ smstools-3.1.15/debian/changelog 2015-04-21 15:13:32.668376587 +0200 @@ -1,3 +1,17 @@ +smstools (3.1.15-1.2) unstable; urgency=high + + * NMU by Jonas Meurer to push the fix into Jessie. + * Fix initscript (debian/init.d): + * drop action 'reload' as it does not what policy demands it to do. Use + 'force-reload' in logrotate post-rotate action. This fixes 'force-reload' + action when used through systemd tools and prevents the smsd daemon + process from being killed at every log rotation. (closes: #XXXXXX) + * source /lib/lsb/init-functions in order to make systemd tools aware of + status changes to the daemon that have been caused by invoking the + initscript directly. + + -- Jonas Meurer <[email protected]> Mon, 20 Apr 2015 11:46:53 +0200 + smstools (3.1.15-1.1) unstable; urgency=low * NMU - preventing smstools from entering jessie. diff -rNu smstools-3.1.15.orig/debian/init.d smstools-3.1.15/debian/init.d --- smstools-3.1.15.orig/debian/init.d 2015-04-20 11:46:00.000000000 +0200 +++ smstools-3.1.15/debian/init.d 2015-04-21 14:54:45.444351751 +0200 @@ -25,6 +25,8 @@ test -x $DAEMON || exit 0 +. /lib/lsb/init-functions + if [ ! -f /etc/default/$PACKAGE ] then exit 1 @@ -218,17 +220,6 @@ echo "$NAME." ;; - reload) - echo -n "Reloading $DESC: " - status - if [ "$?" = 0 ]; then - stop restart - start - else - echo "$NAME is not running." - fi - - ;; restart|force-reload) echo -n "Restarting $DESC: " @@ -237,7 +228,7 @@ ;; *) - echo "Usage: /etc/init.d/$NAME {start|stop|force-stop|reload|force-reload|restart|status}" + echo "Usage: /etc/init.d/$NAME {start|stop|force-stop|force-reload|restart|status}" exit 3 ;; esac diff -rNu smstools-3.1.15.orig/debian/logrotate smstools-3.1.15/debian/logrotate --- smstools-3.1.15.orig/debian/logrotate 2015-04-20 11:46:00.000000000 +0200 +++ smstools-3.1.15/debian/logrotate 2015-04-20 11:46:50.426199696 +0200 @@ -4,6 +4,6 @@ compress missingok postrotate - invoke-rc.d smstools reload > /dev/null + invoke-rc.d smstools force-reload > /dev/null endscript }

