[asterisk-users] Dahdi Init script for Suse?
Joshua Kinard
jkinard at closeup.org
Tue Jan 27 15:33:47 CST 2009
Doesn't look like SuSE is that evolved just yet. I poked at a few other init scripts in /etc/init.d, and they're all pretty much in the format of:
echo -n "Starting something ..."
command
rc_status -v
Some of the init scripts are downright horrific in their design because of this. I would imagine the newer SLES stuff might have cleaned things up, but Open Enterprise Server is based on SuSE 10.1/10.2. I would imagine that, whenever Novell gets around to it, OES3 will probably be based on SuSE 11 (if they even have that version -- I haven't checked yet). I think they're still ironing out kinks and trying to force stubborn holdouts (like myself) off of NetWare onto OES2.
--J
-----Original Message-----
From: asterisk-users-bounces at lists.digium.com [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Tzafrir Cohen
Sent: Monday, January 26, 2009 4:17 PM
To: asterisk-users at lists.digium.com
Subject: Re: [asterisk-users] Dahdi Init script for Suse?
On Sat, Jan 24, 2009 at 04:08:53PM -0500, Joshua Kinard wrote:
> Anyone by chance got an Init script for /etc/init.d/dahdi on a SLES 10
> box that'll work right? The one included by default only deals with
> debian and redhat, and the changes between the old zaptel script I
> have that works are far too invasive. Notably in the use of this
> "action" command that's probably redhat specific.
Anything equivalent in SuSE?
The Debian equivalent of
action "Starting FooBar" foobar
, if you source /etc/lsb/init-functions is
log_daemon_msg "Starting FooBar"
foobar
log_end_msg $?
Though it has an atvantage of making it easier to redirect output of the command.
(Those functions don't seem to be part of the standard LSB init functions, sadly)
--
Tzafrir Cohen
icq#16849755 jabber:tzafrir.cohen at xorcom.com
+972-50-7952406 mailto:tzafrir.cohen at xorcom.com
http://www.xorcom.com iax:guest at local.xorcom.com/tzafrir
_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
More information about the asterisk-users
mailing list