Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I'm not able to try this out on one of our machines, so I'm asking here instead!

Why does the following chkconfig entry in an init script work:

# chkconfig: - 95 05

whereas the following doesn't:

# chkconfig : - 85 15

Is it the fact that there is a space between the chkconfig and the :, or are the numbers important?

share|improve this question

1 Answer 1

up vote 1 down vote accepted

It's the space that's doing it. From leveldb.c:

if (!strncmp(start, "chkconfig:", 10)) {

The numbers only determine when the initscript runs during startup and shutdown.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.