You are not logged in.
Hello,
I`m trying to stop or restart spamassassin.
/etc/rc.d/spamd startworks fine, but
/etc/rc.d/spamd stopfails.
I have found out that problem is
pidof -o %PPID /usr/bin/vendor_perl/spamdreturns nothing.
Has anybody the same problem?
Any ideas how to fix it.
thx
Filip
Offline
Hi, i have exactly the same problem.
solved it by workaround, i edited /etc/rc.d/spamd, replaced the line
PID=`pidof -o %PPID /usr/bin/vendor_perl/spamd`with
if [ -f "/var/run/spamd.pid" ]
then
PID=`cat /var/run/spamd.pid`
fiBut i wonder why pidof -o %PPID /usr/bin/vendor_perl/spamd doesn't work. The process is running and is listed in ps:
[root@malco ~]# ps aux | grep spamd
root 4228 0.1 1.3 105928 48492 ? Ss 08:35 0:01 /usr/bin/vendor_perl/spamd -d -c --max-children 1 --username spamd -H /var/lib/spamassassin/ -s /var/log/spamd.log --pidfile /var/run/spamd.pid
spamd 4230 0.0 1.3 105928 47072 ? S 08:35 0:00 spamd child
root 4714 0.0 0.0 8356 948 pts/4 S+ 09:00 0:00 grep spamdI'd appreciate an explenation of pidof behaviour.
Offline
Also, there is bugreport open for this issue: https://bugs.archlinux.org/task/25043
Offline
Also, is interesting that pidof spamd with options returns pid.
In my case:
pidof '/usr/bin/vendor_perl/spamd -d -c'Offline
What worked for me was replacing:
PID=`pidof -o %PPID /usr/bin/vendor_perl/spamd`with this:
PID=`pidof -o %PPID "/usr/bin/vendor_perl/spamd -d ${SPAMD_OPTS}"`in "/etc/rc.d/spamd"
my "ps aux | grep spamd" output was:
root 3093 20.2 1.1 104844 47236 ? Ss 10:18 0:01 /usr/bin/vendor_perl/spamd -d -c -L --max-children=2
root 3094 0.0 1.1 104844 45644 ? S 10:18 0:00 spamd child
root 3095 0.0 1.1 104844 45644 ? S 10:18 0:00 spamd child
root 3097 0.0 0.0 8532 1052 pts/1 S+ 10:19 0:00 grep --color=auto spamdSo I think "pidof" needs the full name to search...
Offline