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: 13+ 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
[not found] <20050814084810.22147.qmail@web61019.mail.yahoo.com>
2005-08-15 5:21 ` starting a user defined daemon at linux startup P.Manohar
-- strict thread matches above, loose matches on Subject: below --
2005-08-04 7:50 opening linux char device file in user thread P.Manohar
2005-08-04 10:14 ` Bhanu Kalyan Chetlapalli
2005-08-13 10:12 ` starting a user defined daemon at linux startup P.Manohar
2005-08-13 10:19 ` Jan-Benedict Glaw
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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.