On 10/02/07 10:58 -0500, Rami Michael wrote:
> Is there a standard for the way init scripts are supposed to be built?
> I like the idea of being able to write one script and have it work on
> all (or as many as possible) linux based systems.

IME this is quite difficult to achieve, unless you use a lot of conditionals.
For example openSUSE makes use of /sbin/startproc whilst Debian/Ubuntu use
/sbin/start-stop-daemon etc. It can take a fair amount of work porting one
init script from one type to the other. Have a look at /etc/init.d/skeleton
for a well commented example of an LSB compatible script for openSUSE.

> Also, on RHEL one can do the following command "service mysqld
> restart" and this is the equiv of doing a "/etc/init.d/mysqld restart"
> does anything similar exist in openSuse?

Most init scripts are symlinked to /usr/sbin with an "rc" prefix, so for
example /usr/sbin/rcapache2 (or simply rcapache2 if it's in the path) will
symlink to /etc/init.d/apache2 and save you the trouble of that extra typing.

> Also, I noticed that Ubuntu has in its latest version moved away from
> the current init.d way of doing things.  What is your opinion on that?
> Is it better/worse or just more of the same?

Search the archives, this has been brought up before, I think someone has
even packaged the software. Couldn't say much more though.

HTH
Craig
-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to