ok i found it, i just want to post the solution so future people can know how to do this too...
i had to make a
simple "startup" service file and put it in my /etc/init.d/ directory.
frankly this thing was not simple, and it was a pain in my but and wanted every last sytax correct.
but in the end i just copied and modified the service file for the crond daemon.
the end result was this -
Code:
#! /bin/sh
# chkconfig: 2345 20 80
# description: runs the imapd daemon
#source function library.
if [ -f /etc/init.d/functions ] ; then
. /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
. /etc/rc.d/init.d/functions
else
exit 0
fi
# See how we were called.
prog="imapd"
start() {
gprintf "Starting %s: " "$prog"
/usr/sbin/imapd
RETVAL=$?
echo
[ $RETVAL -eq 0 ]
return $RETVAL
}
stop() {
gprintf "Stopping %s: " "$prog"
killproc imapd
RETVAL=$?
echo
[ $RETVAL -eq 0 ]
return $RETVAL
}
rhstatus() {
status imapd
}
restart() {
stop
start
}
reload() {
gprintf "Reloading imap daemon configuration: "
killproc imapd -HUP
retval=$?
echo
return $RETVAL
}
case "$1" in
start)
start
;;
stop)
stop
;;
restart)
restart
;;
reload)
reload
;;
status)
rhstatus
;;
*)
gprintf "Usage: %s {start|stop|status|reload|restart}\n" "$0"
exit 1
esac
exit $?
i just took all that crap and put in a the file /etc/init.d/imapd, then made a similar one for the pop3 service.
heh... easy as that.... 400 simple steps to making a program run when you start your computer. i hate linux.
edit: oh yeah i forgot, after you do all that then you can run
% chkconfig --add imapd
and
% ntsysv
to set it up make the daemon run on startup.