"Konstantin (Kastus) Shchuka" wrote:
[...]
This is correct up till the point SuSEconfig is run. On 7.1 you need to have dependencies discribed in your script. If you have no dependencies, the links to your script will be recreated with wrong numbers.
I learnt it the hard way. I like to have fetchmail running as a daemon. I created a script and placed it in /etc/init.d directory, then created links to start/stop it at appropriate run levels.
It worked great on 6.4. After upgrade to 7.1 my links got recreated by SuSEconfig with wrong numbers. So fetchmail was attempted to start even before starting network!
I then sat and read man page of insserv. It was easy, just add lines to my fetchmail script to describe dependencies.
In my case it is:
### BEGIN INIT INFO # Provides: fetchmail # Required-Start: $network sendmail # Required-Stop: # Default-Start: 2 3 5 # Default-Stop: # Description: Fetchmail as a daemon ### END INIT INFO Then I just run insserv /etc/init.d/fetchmail and proper links are created.
It really worth updating home-grown scripts to include dependency information in them
-Kastus
Thanks Kastus, this explains why after installing a few packages the order of my "rearranged" bootscripts was set back to "crash mode". Running SuSEconfig on other occasions didn't change it back, but I'll dive into that script and make sure this won't happen again. Thanks :-) Juergen -- =========================================== __ _ Juergen Braukmann juergen.braukmann@gmx.de| -o)/ / (_)__ __ ____ __ Tel: 0201-743648 dk4jb@db0qs.#nrw.deu.eu | /\\ /__/ / _ \/ // /\ \/ / ===========================================_\_v __/_/_//_/\_,_/ /_/\_\