On Saturday 06 August 2005 06:16 pm, jdow wrote: > into my cronjob folder. I thought I'd try the 'reload' instead of > 'restart' however, however it seems like 'reload' is not an option: > > << jdow: edit /etc/init.d/spamassassin and make it an option. For FC4 this > works when placed between the stop) and restart) cases. > reload) > # Reload the daemon's configs > echo -n $"Reloading configuration: " > killproc spamd -HUP > RETVAL=$? > echo > ;; > > {^_^}
jdow, adding the above, as you did between stop and restart, then running "service spamassassin reload" nets this: [EMAIL PROTECTED] init.d]# service spamassassin reload /etc/init.d/spamassassin: line 49: : command not found /etc/init.d/spamassassin: line 50: : command not found /etc/init.d/spamassassin: line 51: : command not found /etc/init.d/spamassassin: line 52: : command not found /etc/init.d/spamassassin: line 53: : command not found /etc/init.d/spamassassin: line 54: : command not found Is it possible that there is something missing? I notice this in the stop command: [ $RETVAL = 0 ] && rm -f /var/lock/subsys/spamassassin In yours above you have nothing as the $RETVAL. Should the SA lockfile be removed or just touched? Or neither? Or, still being the newbie that I am, am I way out in left field? -- Chris Registered Linux User 283774 http://counter.li.org 20:01:49 up 3 days, 4:38, 2 users, load average: 0.56, 0.26, 0.18 Mandriva Linux 10.1 Official, kernel 2.6.8.1-12mdk ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ People don't usually make the same mistake twice -- they make it three times, four time, five times... ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~