From: Arturas Moskvinas <arturas.moskvinas@gmail.com>
To: "P.Manohar" <pmanohar@lantana.cs.iitm.ernet.in>
Cc: linux-newbie@vger.kernel.org
Subject: Re: starting a user defined daemon at linux startup.
Date: Sun, 14 Aug 2005 17:32:29 +0300 [thread overview]
Message-ID: <4a618d08050814073217c78a5@mail.gmail.com> (raw)
In-Reply-To: <Pine.LNX.4.60.0508141137540.20130@lantana.cs.iitm.ernet.in>
> Hai
> I have written a daemon, and it is working when I load it.
> Now I want to start that daemon at startup in linux, so that without
> manually running , it has to start along with all the daemons available
> in the system. I came to know that we need to put a script into
> /etc/rc.d/init.d/
> similar to sshd or atd. Do we need to write a script to run my daemon?
>
> I have the daemon's binary, what should be the script content to run it .
There is a bit difference between distribution, you should tell us at
least what distribution do you use. For example there is an easy way
to add a daemon in Red Hat based distribution, just add the line in
"\etc\rc.d\rc.local" file (it is not the best way do do it, but for
starters it is OK i think so). Often you will find a file named
"skeleton", "template" (or something similar) where you'll find short
description how to write your own start script.
Arturas M.
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
next prev parent reply other threads:[~2005-08-14 14:32 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-08-12 5:27 programs/daemons/PIDs using the network Karthik Vishwanath
2005-08-13 3:48 ` _z33
2005-08-13 7:40 ` Richard Adams
2005-08-13 16:37 ` Ray Olszewski
2005-08-14 5:04 ` Karthik Vishwanath
2005-08-14 6:12 ` starting a user defined daemon at linux startup P.Manohar
2005-08-14 14:32 ` Arturas Moskvinas [this message]
2005-08-16 17:49 ` recording a .wav file in a daemon P.Manohar
2005-08-17 15:34 ` Ray Olszewski
2005-08-24 6:49 ` getting kernel symbols list in FC2 P.Manohar
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4a618d08050814073217c78a5@mail.gmail.com \
--to=arturas.moskvinas@gmail.com \
--cc=linux-newbie@vger.kernel.org \
--cc=pmanohar@lantana.cs.iitm.ernet.in \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox