public inbox for linux-newbie@vger.kernel.org
 help / color / mirror / Atom feed
From: Ray Olszewski <ray@comarre.com>
To: linux-newbie@vger.kernel.org
Subject: Re: automatic service start at startup
Date: Mon, 10 Jul 2006 12:09:20 -0700	[thread overview]
Message-ID: <44B2A5E0.5080700@comarre.com> (raw)
In-Reply-To: <44B2A02F.5040304@laposte.net>

ali shahrokni wrote:
> Hello all,
> I am wondering how I can run "autofs start " automatically at startup of 
> my system, so that I can log on to the network directly.
> I would appreciate any hints.

The *exact* answer to this is a bit distro dependent, and you don't say 
what distro you are running.

The *general* answer is that you add it (an autofs start script) to the 
set of scripts that will be run when the system inits. The phrasing 
"autofs start" usually goes with the sort of init script setup that has 
something like (as I say, the details vary slightly among distros):

	a script called /etc/init.d/autofs
	a symlink to it called something like /etc/rc2.d/S45autofs

The script is run by init (indirectly; it is actually run by the 
"primary" init script named in /etc/inittab ... assuming. of course, the 
your system defaults to runlevel 2 -- otherwise you need a different 
symlink) and it (not autofs itself) knows the meaning of the "start" 
switch and will do all the hoo-hah needed to start the daemon correctly.

There are probably still some distros around (Slackware, perhaps?) that 
don't use this for of init-script nesting. In that case, you'll need to 
create a short script, or perhaps add some lines to 
/wherever-your-distro-puts-it/rclocal to start the daemon.

I don't have autofs running here, so this is just an approximate answer 
... really, just an example of answering the general question "How do I 
use init to start daemons?". But it should serve to get you started.

-
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

  parent reply	other threads:[~2006-07-10 19:09 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-07-10 18:45 automatic service start at startup ali shahrokni
2006-07-10 19:05 ` Raseel Bhagat
2006-07-10 19:09 ` Ray Olszewski [this message]
2006-07-10 21:32 ` Artūras Moskvinas
2006-07-11 15:59   ` ali shahrokni
     [not found]     ` <6b4e42d10607111127h2a4af2ddyfc8150884848d8f8@mail.gmail.com>
2006-07-11 18:55       ` ali shahrokni

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=44B2A5E0.5080700@comarre.com \
    --to=ray@comarre.com \
    --cc=linux-newbie@vger.kernel.org \
    /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