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.