| Mon | Tue | Wed | Thu | Fri | Sat | Sun |
|---|---|---|---|---|---|---|
| < | > | |||||
| 1 | 2 | 3 | 4 | |||
| 5 | 6 | 7 | 8 | 9 | 10 | 11 |
| 12 | 13 | 14 | 15 | 16 | 17 | 18 |
| 19 | 20 | 21 | 22 | 23 | 24 | 25 |
| 26 | 27 | 28 | 29 | 30 | 31 | |
Choose skin
Michael K. Johnson
Post details: chkconfig overrides coming
I've been working on changes to chkconfig to allow you to specify overrides to chkconfig information in initscripts. Suppose that you have an initscript called /etc/init.d/foo that starts something like this:
#!/bin/bash # chkconfig: - 23 87 ...
That initscript will not be started by default; you would have to manually run chkconfig foo on for that script to start automatically.
With my changes, you will be able to create /etc/chkconfig.d/foo with lines that override any special chkconfig-parsed comments, like this:
# chkconfig: 345 15 85
Then with that file in place, the chkconfig --add foo command will cause your foo service to be automatically started in runlevels 3, 4, and 5.
I have written the part that allows chkconfig to parse the new files for --add. Next, I'm going to work on code to apply overrides after the fact. Right now I'm using the --override option, but if anyone has better suggestions for the name, I'm all ears...
Comments:
No Comments for this post yet...
Comments are closed for this post.