[ILUG] POP AS A SYSTEM SERVICE

AJ Mc Kee linuxuser at ireland.com
Mon Oct 18 15:45:30 IST 1999


Hi All

I was wondering how to set up pop as a system service. Well I started to do it this way. I am using RH6. I copied one of the init scripts and replaced the daemon with the ipop3d (The script was the apache startup script) Now all goes well and fine but for I can get no further that this message

"+OK POP3 somehost.somedomain.ie v7.59 server ready"

Thats it. It just runs and does not allow me to go to the shell. I'd have to kill it first. So i tried it with the -d switch, nope not working. And I tried the man pages (None found despite having done a complete install cos I'm lazy)

So I was wondering if anybody does have a pop server running as a service and not being called from inetd.conf.

I have included the start up script I used.

Thanks
Anton


----------------------ipop3 script------------------------------------

#!/bin/sh
# Source function library.
. /etc/rc.d/init.d/functions


# See how we were called.
case "$1" in
  start)
	echo -n "Starting POP3: 
"
	daemon ipop3d
	
echo
	touch /var/lock/subsys/ipop3
	;;
  stop)
	echo -n "Shutting down POP3: "
	killproc ipop3d
	echo
	rm -f /var/lock/subsys/ipop3
	rm -f /var/run/ipop3.pid
	;;
  status)
	status ipop3d
	;;
  restart)
	$0 stop
	$0 start
	;;
  reload)
	echo -n "Reloading ipop3d: "
	killproc ipop3d -HUP
	echo
	;;
  *)
	echo "Usage: $0 {start|stop|restart|reload|status}"
	exit 1
esac

exit 0


_____________________________________

Get your free E-mail at http://www.ireland.com




More information about the ILUG mailing list