Start service
Wow do i run the command
service mman.init start when i star linux redhat 8 http://sourceforge.net/projects/middle-man read.me file If you wish to have the proxy server loaded at boot time, there is a script in the "scripts" directory called mman.init to assist you with that, simply edit the paths at the top then copy it to the "/etc/rc.#" directory, where # is your current runlevel (if you're unsure what it is, use the "runlevel" command). mmaninit locks like this #!/bin/sh PROGRAM=/usr/mman/mman PIDFILE=/var/run/mman.pid LOGFILE=/var/log/mman.log CONFIG=/etc/mman/config.xml LOGLEVEL=2047 case "$1" in start|--start) echo "Starting `basename ${PROGRAM}`" ${PROGRAM} -c ${CONFIG} -l ${LOGFILE} -d ${LOGLEVEL} -p ${PIDFILE};; stop|--stop) echo "Stoping `basename ${PROGRAM}`" if [ -f "${PIDFILE}" ] ; then kill -9 `cat ${PIDFILE}` 2> /dev/null rm -f ${PIDFILE} else echo "I cant find the PIDFILE at ${PIDFILE}" fi ;; restart|--restart) $0 stop ; sleep 2s ;$0 start ;; *) echo "Usage: $0 <start|stop|restart>" esac i have try to copy the mman.init file to the folder /etc/rc.5 but it dosent work. What have i do wrong? I will have the software to the service list in ntsysv. |
What's the error message when your try to start it?
|
No error
I dont get any error message.
How do i start the service automaticaly when i start my computer? Now i must type service mman.init start and its starts fine. can i have it in the servicelist ntsysv? |
I guess when you copy the script to /etc/rc.d/init.d directory.
|
All times are GMT -5. The time now is 10:39 AM. |