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 @: ryanit@xxxxxxxx ________________________________________ From: redhat-list-bounces@xxxxxxxxxx [redhat-list-bounces@xxxxxxxxxx] On Behalf Of PV Juliet [pvjuliet@xxxxxxxxx] 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 <pvjuliet@xxxxxxxxx> 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:redhat-list-request@xxxxxxxxxx?subject=unsubscribe https://www.redhat.com/mailman/listinfo/redhat-list -- redhat-list mailing list unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe https://www.redhat.com/mailman/listinfo/redhat-list