|
||||||
| Forums FAQ | Members List | Search | Today's Posts | Mark Forums Read |
| ARCHIVES - Programming & Scripting A place to discuss website design, programming, shell scripts, etc |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
Hello!
I coded a bash script that needs root rights to be executed and i want it to be started everytime i boot. Best would be if it displays some messages in the console mode (i always boot with boot-mode=verbose). Oh and this script requires internet, so boot.local doesn't work (it isnt made for that at all i guess). Now I think that there must be a way to add that script as service and get it executed in some specified runlevel (directly after internet connection is aviable?). Is this possible and if how to do it? Thanks ![]() EDIT: I am running openSUSE 10.3 |
|
|||
|
Make an init script using /etc/init.d/skeleton as an example.
|
|
|||
|
Quote:
|
|
|||
|
Quote:
It gets a bit more complicated, if you need to call them when runlevel changes, then you need to link it with a symbolic link in each of the required runlevel directories(/etc/init.d/rN.d where N=0 to 6). |
|
|||
|
Use chkconfig to activate the "service", or do it from YaST. You need the information in the header for the link to be made. Do not try to make the link manually, SuSEconfig (which is called by YaST) will do that.
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|