Timeline for Creating a shutdown only script with update-rc.d
Current License: CC BY-SA 3.0
7 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Jun 30, 2015 at 2:08 | vote | accept | os x nerd | ||
| Jun 30, 2015 at 2:08 | |||||
| Jun 30, 2015 at 0:22 | comment | added | hildred | Cures me for a dyslexic, I spotted it! New answer in a minute. | |
| Jun 30, 2015 at 0:10 | comment | added | os x nerd | Regarding the order, isn't K01halt the last thing being run in the shutdown sequence? if so why does it have the number K10? | |
| Jun 30, 2015 at 0:07 | comment | added | os x nerd | I tried:sudo update-rc.d ro_poweroff start 1/01/99 0 . but I always get a link starting with K01 | |
| Jun 30, 2015 at 0:03 | comment | added | hildred | within S and K each you are correct about order, but I do not remember whether S scripts or K scripts are run first. as to the 99, remember that since you always want to shutdown services in the reverse of the order you start them, your maintenance scripts will probably subtract your number from 100, so if you ask for 99, you get 01 and if you ask for 1 you get 99. | |
| Jun 29, 2015 at 23:59 | comment | added | os x nerd | AFAIK the list of scripts is executed in ASCIIbetcal order. which means that K01poweroff comes first and K10halt comes last. What still bugs me is that I don't get the K99 on the symlink name | |
| Jun 29, 2015 at 23:46 | history | answered | hildred | CC BY-SA 3.0 |