[Mimedefang] Stop/restart leaves mimedefang processes
Alan Madill
amadill at hwy16.com
Wed May 7 13:19:01 EDT 2003
> Stefan Schoeman wrote:
>
> >I've had this hassle for quite some time and then just decided to modify the
> >scripts to kill MIMEDefang with signal 9 (QUIT). This seems to kill the
> >processes but I've always been concerned that it maybe does not clean all
> >the memory that the applications may have consumed.
> >
> >David, could you please shed some light on whether killing MIMEDefang
> >processes with signal 9 could lead to memory leakage ?
> >
> I've been killing MIMEdefang on my Red Hat gateways via the
> 'killproc' routine (which is part of /etc/init.d/functions) for a long
> while now without any adverse results. killproc basically does a few
> things:
killproc looks for the .pid file in /var/run
I modified the included redhat init script as follows
diff -c /root/defang/mimedefang-2.33/redhat/mimedefang-init mimedefang
*** /root/defang/mimedefang-2.33/redhat/mimedefang-init 2003-04-21
09:27:46.000000000 -0700
--- mimedefang 2003-05-07 10:12:34.000000000 -0700
***************
*** 161,166 ****
--- 161,167 ----
$([ "$MX_STATS" = "yes" -a "$MX_FLUSH_STATS" = "yes" ] && echo "-u") \
$([ "$MX_STATS_SYSLOG" = "yes" ] && echo "-T") \
-s $MX_SOCKET
+ [ $RETVAL -eq 0 ] && ln -s /var/spool/MIMEDefang/$prog-multiplexor.pid
/var/run/$prog-multiplexor.pid
echo
fi
***************
*** 191,196 ****
--- 192,198 ----
echo
[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
+ [ $RETVAL -eq 0 ] && ln -s /var/spool/MIMEDefang/$prog.pid /var/run/$prog.pid
return $RETVAL
}
It creates a symlink in the /var/run directory.--
Alan Madill - Aspen House Systems
250 567-4200
More information about the MIMEDefang
mailing list