start/stop script

start/stop script

am 16.12.2004 16:47:05 von Frank Zhang

Hi:
I come from Solaris background, in Solaris , under /etc/rc3.d, there are
some script like S89sshd which will start up those daemon processes, there
are no Kxxsshd script. But in Linux, under /etc/init.d/rc3.d, there are
S89sshd, but also K07sshd, why those Kxxxxx scripts exist under rc3.d
Thanks

Frank Zhang
-
To unsubscribe from this list: send the line "unsubscribe linux-admin" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: start/stop script

am 16.12.2004 17:00:17 von Scott Taylor

Frank Zhang said:
> Hi:
> I come from Solaris background, in Solaris , under /etc/rc3.d, there
> are
> some script like S89sshd which will start up those daemon processes,
> there
> are no Kxxsshd script. But in Linux, under /etc/init.d/rc3.d, there are
> S89sshd, but also K07sshd, why those Kxxxxx scripts exist under rc3.d
>

You will probably notice they are all (probably) links to /etc/init.d
scripts.

'S' is for start, 'K' is for kill, other wise the same as SysV.

:)

--
Scott
-
To unsubscribe from this list: send the line "unsubscribe linux-admin" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: start/stop script

am 16.12.2004 17:02:11 von Scott Taylor

Frank Zhang said:
> Hi:
> I come from Solaris background, in Solaris , under /etc/rc3.d, there
> are
> some script like S89sshd which will start up those daemon processes,
> there
> are no Kxxsshd script. But in Linux, under /etc/init.d/rc3.d, there are
> S89sshd, but also K07sshd, why those Kxxxxx scripts exist under rc3.d
>

BTW, what distro/version are you using?

--
Scott
-
To unsubscribe from this list: send the line "unsubscribe linux-admin" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: start/stop script

am 16.12.2004 17:17:41 von Frank Zhang

I am using SuSE 8.0
my question is, when you switch to run level 3, the server will stop the
daemon process which Kxxxx will do, then start the daemon process which
Sxxxx will do ?
and under /etc/init.d/rc0.d, I did not see any Kxxxxx scripts, so when you
switch to run level 0, the server just kill all processes? if I have
database, then we want to garcefully shut down the database.
Thanks

Frank

On Thu, 16 Dec 2004, Scott Taylor wrote:

>
> Frank Zhang said:
> > Hi:
> > I come from Solaris background, in Solaris , under /etc/rc3.d, there
> > are
> > some script like S89sshd which will start up those daemon processes,
> > there
> > are no Kxxsshd script. But in Linux, under /etc/init.d/rc3.d, there are
> > S89sshd, but also K07sshd, why those Kxxxxx scripts exist under rc3.d
> >
>
> BTW, what distro/version are you using?
>
> --
> Scott
> -
> To unsubscribe from this list: send the line "unsubscribe linux-admin" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
-
To unsubscribe from this list: send the line "unsubscribe linux-admin" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: start/stop script

am 16.12.2004 18:43:05 von Scott Taylor

Frank Zhang said:
> I am using SuSE 8.0
> my question is, when you switch to run level 3, the server will stop the
> daemon process which Kxxxx will do, then start the daemon process which
> Sxxxx will do ?
> and under /etc/init.d/rc0.d, I did not see any Kxxxxx scripts, so when you
> switch to run level 0, the server just kill all processes? if I have
> database, then we want to garcefully shut down the database.

I'm not too up on SUSE, but init 0 should run every K* script you have in
your current run level before switching you to run level 0 (shutdown). At
least that's how most SysVish Linux boxes work.

--
Scott
-
To unsubscribe from this list: send the line "unsubscribe linux-admin" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html