RE: Daemon

"[email protected]" <[email protected]>
Newsgroups gmane.linux.redhat.general
Message-ID <80004E449FAD984ABBAF9939B1F8798701A370C8C6C7@MBXVS04.hosting01.active24.com>
Hi Juliet,

When you put a start/stop script in init.d and want to run it by the system at boottime.

Then you need to create a link at the running init-level in "/etc/rc?.d/" to the init.d start/stop script.

So, if your system is running init-level 3 (`runlevel` or "/etc/inittab/{default}) then create a symlink  in /etc/rc3.d :
# cd /etc/rc3.d
# ln -s /etc/init.d/{daemon-name-script}  S99'daemon-name'  (S=Start-script, 99=start-number in the row (99 is the last number, can also be another number if necessary))

You can do the same with the stop-part, those are the K-symlinks (Kill) in "/etc/rc3.d"
   

Met vriendelijke groet / kind regards,



Ron de Kuijer

ICT specialist

T: 06 36 118 555
F: 030 65 73 903
@: [email protected]
________________________________________
From: [email protected] [[email protected]] On Behalf Of PV Juliet [[email protected]]
Sent: Monday, December 30, 2013 11:10
To: General Red Hat Linux discussion list
Subject: Re: Daemon

Hi All,
     I  put a simple script in init.d which  can  start and stop my daemon.
But when i am  booting the machine it's not running. I am able to start
manually(service name start) .It works fine . Is it possible to possible to
run it custom level ?
Thanks and Regards
Juliet


On Fri, Nov 29, 2013 at 11:26 AM, PV Juliet <[email protected]> wrote:

> HI All,
>     I have a c program which run as a daemon in linux. Now i want to start
> this program  when the system boots up . Can any one tell me simple script
> which  will run this automatically.
>
> Thanks and Regards
> juliet
>
--
redhat-list mailing list
unsubscribe mailto:[email protected]?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

-- 
redhat-list mailing list
unsubscribe mailto:[email protected]?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.