-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
The Monday 2007-11-26 at 13:06 -0700, Jason Craig wrote:
Say I've installed some software, like PostgreSQL, that adds a beautiful
script to /etc/init.d/ that starts or stops the server. Now I want to start
the server in, say runlevel 3, so I know I need to add links to
/etc/init.d/rc3.d/ but I'm having trouble finding information on the proper
way of doing this. Can anyone point me to some documentation, or give a
quick explanation of the numbers, letters etc. used in these symlinks?
Ok.
Faster doc is "man init.d". Then there is a chapter in the reference book
(which nowdays is not paper, but html and pdf, if you install the
appropiate package, or browse to somewhere in the net I forgot), named
"The SuSE boot concept". Mmm... I think the chapter is named differently
now:
Chapter 12. Booting and Configuring a Linux System
12.2. The init Process
Each script (see the example file /etc/init.d/skeleton) contains a block
like this:
### BEGIN INIT INFO
# Provides: FOO
# Required-Start: $syslog $remote_fs
# Required-Stop: $syslog $remote_fs
# Default-Start: 3 5
# Default-Stop: 0 1 2 6
# Description: Start FOO to allow XY and provide YZ
### END INIT INFO
The information there defines the runlevels in which this script will be
called, and the order, ie, afther which other services.
Any script must be inserted properly using "insserv", or easier and
recomended, "chkconfig". You do not need Yast. You can use "chkconfig
- --edit", for instance (mind: it uses "vi", ignoring the "EDITOR"
variable). Or simply "chkconfig servicename on" to activate a service, and
"--list" will produce a coloured chart.
But never try to insert services manually creating the symlinks yourself:
it may not work, and they may be removed. It is nowdays quite more
complex, it uses a makefile approach in order to start several services in
parallel (see "man startpar").
- --
Cheers,
Carlos E. R.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.4-svn0 (GNU/Linux)
Comment: Made with pgp4pine 1.76
iD8DBQFHS2p+tTMYHG2NR9URApE+AJ0TllxBFU+/WtMGu7ZoRWphuSW6MQCgjnqN
s9o+sImruxqvU6+YIj6keBE=
=dIvH
-----END PGP SIGNATURE-----
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]