Mail from ILUG-BOM list (Non-Digest Mode)
Hi,
I tried putting qmail as a service under the rc-scripts. Here's the file
/etc/rc.d/init.d/qmail that I derived from the httpd script. I added the
service using "chkconfig --add qmail".
--- /etc/rc.d/init.d/qmail ---
#!/bin/sh
#
# Startup script for the Qmail MTA
#
# chkconfig: 2345 85 15
#
# description: Qmail is the MTA used on this machine to deliver mails\
# to local as well as remote addresses.
# See how we were called.
case "$1" in
start)
echo -n "Starting qmail: "
/var/qmail/rc &
echo
;;
stop)
echo -n "Shutting down qmail: "
killall -9 qmail-send
echo
;;
status)
pid=`pidof qmail-send`
if [ "$pid" != "" ] ; then
echo "qmail (pid $pid) is running..."
else
echo "qmail is stopped"
fi
;;
restart)
$0 stop
$0 start
;;
reload)
echo -n "Reloading qmail: "
killall -HUP qmail-send
echo
;;
force)
echo -n "Forcing queue delivery: "
killall -ALRM qmail-send
echo
;;
*)
echo "Usage: $0 {start|stop|restart|reload|status|force}"
exit 1
esac
exit 0
--- end file ---
Comments? Anything that I missed?
How do those numbers "85" and "15" work? I know that they are priority
levels assigned to the service ...
Sameer.
__________________________________________________
Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.
http://im.yahoo.com
_______________________________________________
Linuxers mailing list
[EMAIL PROTECTED]
http://ilug-bom.org.in/mailman/listinfo/linuxers