LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 01-24-2003, 03:54 PM   #1
HiGate
LQ Newbie
 
Registered: Jan 2003
Location: Sweden
Distribution: RedHat 8.0
Posts: 12

Rep: Reputation: 0
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.
 
Old 01-24-2003, 03:59 PM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
What's the error message when your try to start it?
 
Old 01-25-2003, 01:52 AM   #3
HiGate
LQ Newbie
 
Registered: Jan 2003
Location: Sweden
Distribution: RedHat 8.0
Posts: 12

Original Poster
Rep: Reputation: 0
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?
 
Old 01-25-2003, 04:19 PM   #4
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
I guess when you copy the script to /etc/rc.d/init.d directory.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
when i try to start samba pdc's smb service nmbd failed to start . sandeepchau123 Linux - Newbie 2 10-20-2007 01:59 PM
service does not start Aljaber Fedora 11 12-01-2005 07:07 PM
service could not start LinuxRam Linux - Newbie 4 08-26-2004 06:03 AM
Can't start Squid service. stan georgen Linux - Software 1 11-11-2003 02:25 PM
Service start-up n.antonio Linux - Software 2 05-02-2003 09:57 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 04:06 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration