I just have a simple question but scouring the search engines I have not found any explanation of what the -
(hyphen) in the chkconfig
runlevel actually stands for within the init script file.
For example in /etc/init.d/mysqld
the first few lines are like this:
#!/bin/bash
#
# mysqld This shell script takes care of starting and stopping
# the MySQL subsystem (mysqld).
#
# chkconfig: - 64 36
If anyone could provide me a link explaining this that would be awesome.
Best Answer
The hyphen (
-
) found in an init script:means that the service should not be started in any run levels by default, only stopped.
It replaces a list of run levels (e.g. 345) as shown below:
Therefore if you use:
then no start links will be created in any of the
init
directories.Notice only the
Kill
scripts links exist (K73script
).References:
A reference to this can be found on softpanorama.org: