Package: spamassassin
Version: 3.4.1-4
Followup-For: Bug #788429
> So the 'start-stop-daemon --stop' calls in /etc/init.d/spamassassin are not
> able to identify the running spamd processes.
Note that this bug does not apply, since systemd we normally restart services
via 'systemctl restart <servicename>'.
In my Debian sid, the restarting the service works perfectly well:
"
root@qmitoshiba:/etc/default# ps -ef |grep spamd
root 20738 1 1 21:44 ? 00:00:01 /usr/sbin/spamd -d
--pidfile=/var/run/spamassassin.pid --create-prefs --max-children 5
--helper-home-dir
root 20739 20738 0 21:44 ? 00:00:00 spamd child
root 20740 20738 0 21:44 ? 00:00:00 spamd child
root 20763 13386 0 21:47 pts/2 00:00:00 grep spamd
root@qmitoshiba:/etc/default# systemctl restart spamassassin
root@qmitoshiba:/etc/default# systemctl status spamassassin
● spamassassin.service - Perl-based spam filter using text analysis
Loaded: loaded (/lib/systemd/system/spamassassin.service; enabled; vendor
preset: enabled)
Active: active (running) since Mon 2016-05-30 21:47:35 CEST; 12s ago
Process: 20771 ExecStart=/usr/sbin/spamd -d
--pidfile=/var/run/spamassassin.pid $OPTIONS (code=exited, status=0/SUCCESS)
Main PID: 20777 (/usr/sbin/spamd)
CGroup: /system.slice/spamassassin.service
├─20777 /usr/sbin/spamd -d --pidfile=/var/run/spamassassin.pid
--create-prefs --max-children 5 --helper-home-di
├─20778 spamd chil
└─20779 spamd chil
May 30 21:47:33 qmitoshiba systemd[1]: Starting Perl-based spam filter using
text analysis...
May 30 21:47:33 qmitoshiba spamd[20771]: logger: removing stderr method
May 30 21:47:34 qmitoshiba spamd[20777]: zoom: able to use 353/353 'body_0'
compiled rules (100%)
May 30 21:47:35 qmitoshiba spamd[20777]: spamd: server started on
IO::Socket::IP [::1]:783, IO::Socket::IP [127.0.0.1]:783 (running version 3.4.1)
May 30 21:47:35 qmitoshiba spamd[20777]: spamd: server pid: 20777
May 30 21:47:35 qmitoshiba spamd[20777]: spamd: server successfully spawned
child process, pid 20778
May 30 21:47:35 qmitoshiba spamd[20777]: spamd: server successfully spawned
child process, pid 20779
May 30 21:47:35 qmitoshiba spamd[20777]: prefork: child states: SI
May 30 21:47:35 qmitoshiba systemd[1]: Started Perl-based spam filter using
text analysis.
May 30 21:47:35 qmitoshiba spamd[20777]: prefork: child states: II
root@qmitoshiba:/etc/default#
"
As you can see above, before the restart spamd had PID of 20738, after
it was restarted, it changed to 20777. Because Jessie is already on
systemd, restarting as shown above should also work on Jessie.
Any comments or concerns, please do not hold off.
-- System Information:
Debian Release: stretch/sid
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 4.5.0-2-686-pae (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages spamassassin depends on:
ii adduser 3.114
ii curl 7.47.0-1
ii init-system-helpers 1.33
ii libhtml-parser-perl 3.72-1
ii libhttp-date-perl 6.02-1
ii libnet-dns-perl 1.05-2
ii libnetaddr-ip-perl 4.079+dfsg-1
ii libsocket6-perl 0.27-1
ii libsys-hostname-long-perl 1.5-1
ii libwww-perl 6.15-1
ii perl 5.22.2-1
ii perl-modules-5.22 [libarchive-tar-perl] 5.22.2-1
ii w3m 0.5.3-28
Versions of packages spamassassin recommends:
ii gnupg 1.4.20-6
ii libio-socket-inet6-perl 2.72-2
ii libmail-spf-perl 2.9.0-4
ii libperl5.22 [libsys-syslog-perl] 5.22.2-1
ii sa-compile 3.4.1-4
ii spamc 3.4.1-4
Versions of packages spamassassin suggests:
pn libdbi-perl <none>
pn libencode-detect-perl <none>
ii libio-socket-ssl-perl 2.027-1
pn libmail-dkim-perl <none>
ii libperl5.22 [libcompress-zlib-perl] 5.22.2-1
pn pyzor <none>
pn razor <none>
-- Configuration Files:
/etc/spamassassin/local.cf changed [not included]
-- no debconf information
Regards,
--
Miklos Quartus
WWW: http://www.miklos.info
GPG: 3C4B 1364 A379 7366 7FED 260A 2208 F2CE 3FCE A0D3