Re: chkconfig question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Larry Martell wrote:
> On Fri, Dec 13, 2013 at 5:04 PM, Reindl Harald <h.reindl@xxxxxxxxxxxxx>
> wrote:
>> Am 13.12.2013 23:00, schrieb Larry Martell:
>>> In the docs for chkconfig it says:
>>> More commonly, the service is off by default on all runlevels, which
>>> looks like this:
>>>
>>> # chkconfig: - 20 80
>>>
>>> But services with a chkconfig entry like that are started at boot time
>>> (e.g. mysql, httpd). So when do they get started?
>>
>> when they are enabled with "chkconfig <service> on"
>>
>> look at /etc/rc0.d/ to /etc/rc6.d
>> chkconfig finally creates symlinks there
>
> But at what run levels is my question.
>
> Looking at mysqd, it has:
>
> # chkconfig: - 64 36
>
> and I see a S64mysqld link in rc 2, 3, 4, and 5. Why in those 4 dirs?
> Will all scripts with - in the chkconfig entry be started at those 4
> levels? How is putting - different from putting 2345?

Runlevel 0 is poweroff. 1 is single user/maintenance mode. 4, well, no one
actually uses 4. And 6 is reboot. So, once the network's up, text mode and
X-mode.

        mark

_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos




[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux