Hi,
How do I disable certain deamons from running at startup?
Thanks!
>How do I disable certain deamons from running at startup?
>Thanks!
Look in /etc/rc.d and it's submenus
Or, it may be started directly by init, so also check
/etc/inittab
Lew Pitcher
System Consultant, Integration Solutions Architecture
Toronto Dominion Bank
(Opinions expressed are my own, not my employer's.)
1. Q: killing user deamons - How?
I'm writing a fairly short program that simply sits there and
waits for a UDP packet to show up, and when it does, it prints a
short message to the user. I've been running the deamon as a
background job, but am tired of having the computer tell me "You
have jobs running" every time I log off. What I would like is
something like the prograrm "watch", which when you run forks itself
into the background, and then kills itself when you exit the shell
it was started from. I looked at the watch source and copied
everything I could find that was related to job control, but my
program still doesn't work...
The first few lines look something like this:
if(isatty(0))
{
long pid;
if((pid = fork()) > 0)
exit(0);
if(pid < 0)
exit(2);
}
signal(SIGHUP, SIG_DFL);
and this seems to work... when you run the program, it forks a child
off that runs under the same tty, then dies. The child then happily
runs. And runs, and runs. If you exit the shell, the child process
goes from the shell's tty to tty?, but keeps running.
Any hints as to how can I set this up so that this process with
background itself, but will also exit as soon as the shell it was
started from exits?
Thanks for your time!
-j
PS- I would prefer a mail reply, becuase the dumb news server is
known to drop stuff on the floor, but I'll be reading what does make
it through...
--
Jay Kreibich U of I Computer Science
-----------------------------------------------------------------------
"You think that I want to be understood..." -They Might Be Giants
2. Please Help on my Final Year Project
4. Epson Stylus and Linux, can they work?
7. Kill COREL; Kill COREL; Kill COREL; ...
8. PCI Ethernet Card, Ne2000 Compatible
9. A method to kill process that cannot be killed even with `kill -9'.
10. How to kill process which not killed by 'kill' ?
11. killing dead process, kill -9 doesn′t work
12. how to kill a process when kill -9 won't
13. kill -9 doesn't kill (continued)