* automatic service start at startup
@ 2006-07-10 18:45 ali shahrokni
2006-07-10 19:05 ` Raseel Bhagat
` (2 more replies)
0 siblings, 3 replies; 6+ messages in thread
From: ali shahrokni @ 2006-07-10 18:45 UTC (permalink / raw)
To: linux-newbie
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.
Thanks,
Ali
-
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
^ permalink raw reply [flat|nested] 6+ messages in thread* Re: automatic service start at startup
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
2006-07-10 21:32 ` Artūras Moskvinas
2 siblings, 0 replies; 6+ messages in thread
From: Raseel Bhagat @ 2006-07-10 19:05 UTC (permalink / raw)
To: ali shahrokni; +Cc: linux-newbie
Hi Ali,
On 7/11/06, ali shahrokni <shahrokni@gmail.com> 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.
Hint : if bash shell, .bashrc, .bash_profile.
--
Raseel.
-
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
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: automatic service start at startup
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
2006-07-10 21:32 ` Artūras Moskvinas
2 siblings, 0 replies; 6+ messages in thread
From: Ray Olszewski @ 2006-07-10 19:09 UTC (permalink / raw)
To: linux-newbie
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
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: automatic service start at startup
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
@ 2006-07-10 21:32 ` Artūras Moskvinas
2006-07-11 15:59 ` ali shahrokni
2 siblings, 1 reply; 6+ messages in thread
From: Artūras Moskvinas @ 2006-07-10 21:32 UTC (permalink / raw)
To: ali shahrokni; +Cc: linux-newbie
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.
It depends on distro you are using. The easiest way (though not the best
I think) is to add an entry into "rc.local" file (I think you should
find somewhere in /etc subdirectories, because it depends on distro).
Second way is to use special tool to add service to startup, for example:
Gentoo: rc-update add autofs default
SUSE (at least SLES): user graphical application yast, and choose
Runlevel editor (i do not know the command line equivalent)
Red Hat(and fedora core, Mandrake too, I think...):
system-config-services (graphical tool), or chkconfig --add autofs
Ubuntu (i think debian too): tool rcconf
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
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: automatic service start at startup
2006-07-10 21:32 ` Artūras Moskvinas
@ 2006-07-11 15:59 ` ali shahrokni
[not found] ` <6b4e42d10607111127h2a4af2ddyfc8150884848d8f8@mail.gmail.com>
0 siblings, 1 reply; 6+ messages in thread
From: ali shahrokni @ 2006-07-11 15:59 UTC (permalink / raw)
To: Artūras Moskvinas, ray, raseelbhagat, linux-newbie
Thanks guys,
using your help, I could solve the problem the neat way: I just had to
set a higher number (99, instead of 19) to the symlink to autofs, in
rc2.d... I don't know exactly why it had to be higher, but now it works
fine! thanks!
ali
Artūras Moskvinas wrote:
>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.
>>
>>
>
>It depends on distro you are using. The easiest way (though not the best
>I think) is to add an entry into "rc.local" file (I think you should
>find somewhere in /etc subdirectories, because it depends on distro).
>Second way is to use special tool to add service to startup, for example:
>
>Gentoo: rc-update add autofs default
>SUSE (at least SLES): user graphical application yast, and choose
>Runlevel editor (i do not know the command line equivalent)
>Red Hat(and fedora core, Mandrake too, I think...):
>system-config-services (graphical tool), or chkconfig --add autofs
>Ubuntu (i think debian too): tool rcconf
>
>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
>
>
-
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
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2006-07-11 18:55 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
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
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox