#!/bin/sh # # Startup script for gnu-pop3d # # chkconfig: 345 85 15 # description: GNU POP3 is a small, fast, efficient, free POP3 server # fully compliant with RFCs. # processname: pop3d # Source function library. . /etc/rc.d/init.d/functions # See how we were called. case "$1" in start) echo -n "Starting gnu-pop3d: " daemon gnu-pop3d -d 10 -t 600 echo touch /var/lock/subsys/gnu-pop3d ;; stop) echo -n "Shutting down gnu-pop3d: " killproc gnu-pop3d echo rm -f /var/lock/subsys/gnu-pop3d ;; status) status gnu-pop3d ;; restart) $0 stop $0 start ;; *) echo "Usage: $0 {start|stop|restart|status}" exit 1 esac exit 0