08-16-2013
That's right. (Sorry)
The answer was in the question for this. The uncommenting with : does it. The service stops on it's own though it will take a moment or two. It respawns if left in /etc/inittab.
So somewhat embarassing, to admit, but resolved nontheless.
Cheers,
DH
This User Gave Thanks to Devyn For This Post:
10 More Discussions You Might Find Interesting
1. Programming
I want to write background running program. How to use daemon function. Please send me source code.
Thanks. (1 Reply)
Discussion started by: bat_oyu
1 Replies
2. Programming
how to convert a c program into a Daemon.
thanks in advance
svh (2 Replies)
Discussion started by: svh
2 Replies
3. Solaris
Say I have a daemon that dies for an unknown reason. Is there a way to track its process ID to try to determine when it dies and what causes it to go away? (2 Replies)
Discussion started by: Silver11
2 Replies
4. Linux
how i will write the daemon process,if any body have sample daemon process send me. (1 Reply)
Discussion started by: suresh_rupineni
1 Replies
5. Solaris
Hi there
I get the following message im my messages file 2 or 3 times a second
Dec 4 11:44:18 my-box in.timed: connect from localhost
I would like to stop in.timed from logging to syslog altogether as this message is filling up my disk.
I dont want to stop daemon.info altogether... (0 Replies)
Discussion started by: hcclnoodles
0 Replies
6. UNIX for Advanced & Expert Users
Hi ,
I have one question, suppose i am a normal user and when i use 'w' command , it shows who is logged on and what they are doing .
Now i want to stop others users to know what i am doing accept the root ?
can i do this ?
thanks (5 Replies)
Discussion started by: mobile01
5 Replies
7. Programming
i want to write a daemon service which listens the 8080 port and write down all the details in one file. How can i do this ? (2 Replies)
Discussion started by: santosh123
2 Replies
8. Shell Programming and Scripting
I think I have an issue almost like Sammy_T's. I want to make a piece of code run as a daemon. I have some java, along with it 15 classpath's converted to a shell script that I can "runmyjavap". The script is just what I need to run after compiling it:
#!/bin/sh
java -classpath : ...(from... (3 Replies)
Discussion started by: Miller_K
3 Replies
9. Solaris
I'm setting up a solaris server at home.
At the moment I have to keep running:
/etc/init.d/nfs.server start
To start my NFS server process. Is there anything I can do to make this happen automatically at boot?
Many thanks in anticipation.
Stin. (4 Replies)
Discussion started by: Stin
4 Replies
10. Homework & Coursework Questions
Manually we can stop the daemon by stopsrc command other-than this In which case mountd daemon will crash automatically. (1 Reply)
Discussion started by: t.balamurugan
1 Replies
msvc(8) System Manager's Manual msvc(8)
NAME
msvc - control minit
SYNOPSIS
msvc [ -[uodpchaitko] ] [ -P pid ] service [...]
DESCRIPTION
msvc is the management interface to minit. service is the service directory name relative to /etc/minit. Starting with minit 0.9 you can
also include /etc/minit/ in the service name.
OPTIONS
If no option is given, msvc will just print a small diagnostic message to stdout, saying if the service is up, down or finished, which PID
it has if it is up, and for how long it has been in this state.
-u Up. If the service is not running, start it. If the service stops, restart it.
-o Once. If the service is not running, start it. If the service stops, do not restart it.
-d Down. If the service is running, send it a TERM signal and then a CONT signal. After it stops, do not restart it.
-p Pause. Send the service a STOP signal.
-c Continue. Send the service a CONT signal.
-h Hangup. Send the service a HUP signal.
-a Alarm. Send the service an ALRM signal.
-i Interrupt. Send the service an INT signal.
-t Terminate. Send the service a TERM signal.
-k Terminate. Send the service a KILL signal.
-P pid
Set PID. Tell minit the PID of the service is really pid. This is useful for services that fork themselves in the background but put
their real PID in a file, typically called /var/run/service.pid. Used by pidfilehack.
-D service
Print dependencies. This will print all the names of all the services that were started because this services depended on them.
Please note that this is not done recursively (i.e. if default depends on qmail and qmail depends on log, this will print qmail, not
qmail/log. But msvc -D qmail will print qmail/log).
-H Print history. This will print the names of the ten least recently spawned processes. This is useful if you see a process looping
(initialization fails and minit is restarting it all the time).
RETURN CODES
Generally, msvc return zero if everything is OK or 1 on error (could not open /lib/minit/in or /lib/minit/out or there is no process with
the given name). In diagnostic mode, it will exit 0 if the service is up, 2 if it is down or 3 if it is finished.
SEE ALSO
pidfilehack(8), svc(8)
msvc(8)