[ create a new paste ] login | about

Link: http://codepad.org/QdV2zauM    [ raw code | fork ]

Plain Text, pasted on Aug 29:
1
2
3
4
5
6
7
8
9
10
11
12
I created a backup script and i want to run it before the system's shut down.
I know that i need to put this script in /etc/init.d and then create a symbolic link to it
in /etc/rc0.d ( 0 is the halt run level).
All scripts in rc0 begins with KS[2-digits]name.
K stand for Kill and the system will send kill-like parameters to scripts that start with letter K.
S stand for start etc.
K scripts run first in same order as in the file name ( the 2 digits i mentiond before).
My problem is that in /etc/rc0.d i see the following scripts K01gdm ( which is there probably to kill Gnome-desktop-manager ),
K02usplash ( which i dont know its purpose ) and i want to decide what number to give to my script.
i thought about naming my script K01Backup and then rename K01gdm to K02gdm and K02usplash to K03usplash.
I'm afraid that something bad might happen to my system and asking for your advice.
Thank you very much!


Create a new paste based on this one


Comments: