[Home]

Summary:ASTERISK-00309: [patch] Startup script
Reporter:Tilghman Lesher (tilghman)Labels:
Date Opened:2003-09-25 15:39:41Date Closed:2008-01-15 14:40:21.000-0600
Priority:MajorRegression?No
Status:Closed/CompleteComponents:Core/General
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:( 0) asterisk.debian
( 1) rc.mandrake.asterisk
( 2) rc.mandrake.zaptel
Description:This is a modification of safe_asterisk into a startup script.  In addition to reload and restart, this script also reports the meaning of each exit code in the email to root.

****** ADDITIONAL INFORMATION ******

Script has been tested to work on Mandrake 9.1.
Comments:By: Mark Spencer (markster) 2003-10-05 20:39:16

Can you send as a diff?

By: Tilghman Lesher (tilghman) 2003-10-16 16:24:56

Here's the diff.  I've also added some additional lines, in case both chan_h323 and codec_g729b are being used.  Won't hurt to have them if one or both of those modules aren't compiled and/or used.

By: John Todd (jtodd) 2003-11-04 15:28:10.000-0600

Does not work on RH7.2 - there is no "gprintf" command on my system, nor any file that contains "gprintf".  I suspect that this will also fail on *BSD systems.

By: Tilghman Lesher (tilghman) 2003-11-04 15:48:08.000-0600

gprintf() is a shell function in Mandrake.  Unfortunately, I don't think there's any way to give the pretty [OK] on all systems, due to the different underlying scripts controlling the startup.

As there is already a startup script for RedHat, I'd be quite willing to let this be the startup script for Mandrake.

By: John Todd (jtodd) 2003-11-05 02:36:08.000-0600

So... as nice as this might be, where do you suggest putting it in CVS?  How would this become part of the "typical" installation?  Or would it go into the addons directory as startup-mandrake  with some additional comments (i.e.: "This is just a nicer form of the startup script for those of you running Mandrake, but the supplied one will suffice as well.")

By: Tilghman Lesher (tilghman) 2003-11-05 12:42:21.000-0600

Well, since there's a subdirectory called redhat, maybe a subdirectory called mandrake?  And no, while it is a nicer form of the startup script, it does far more than the RedHat script.  Also, the RedHat script will not work on a default Mandrake installation.

We really are talking about different startup scripts for different distributions.

By: Brian West (bkw918) 2003-11-13 16:07:13.000-0600

How about this..

./contrib
./patches

Throw all contrib stuff into the contrib directory.. this would include all .pl, .sql and init scripts... throw all .diff and misc patches into patches.  I think we could start throwing some of these patches on bugs.digium into that patch directory and start closing out these tickets?

Do you see any reason why we shouldn't do that?

By: zoa (zoa) 2003-11-25 14:45:22.000-0600

i agree with bkw !

By: Tilghman Lesher (tilghman) 2003-11-25 14:56:44.000-0600

contrib/mandrake/rc.asterisk
contrib/mandrake/rc.zaptel
contrib/redhat/rc.asterisk
(etc.)

Sounds good to me.

By: jrollyson (jrollyson) 2004-01-10 01:32:31.000-0600

bkw: re throwing patches into a patch directory, someone would have to make sure they all apply cleanly continue to apply cleanly, regardless of what combination
of patches are applied. For more complex stuff, this may mean adding in #ifdefs or  turning patches into seperate modules would be less likely to result in a future bug  report against a patch that doesn't apply ;)

By: Brian West (bkw918) 2004-01-11 04:23:41.000-0600

Added to contrib/init.d

By: zoa (zoa) 2004-01-11 20:41:49.000-0600

starblazer will add a script for gentoo, i think we should move init.asterisk to /contrib/init/init.redhat
chmod +x the other init scripts already in there.

the 3 init scripts we have so far don't work on debian.

By: Malcolm Davenport (mdavenport) 2004-01-12 23:09:38.000-0600

Gentoo's in there as of last night.

By: zoa (zoa) 2004-01-13 05:49:51.000-0600

the debian script was added last night.

Anyone with a slack / suse script / freebsd etc script?

By: Digium Subversion (svnbot) 2008-01-15 14:40:21.000-0600

Repository: asterisk
Revision: 1941

A   trunk/contrib/init.d/rc.mandrake.asterisk
A   trunk/contrib/init.d/rc.mandrake.zaptel

------------------------------------------------------------------------
r1941 | jeremy | 2008-01-15 14:40:20 -0600 (Tue, 15 Jan 2008) | 2 lines

Add Corydon76's mandrake startup scripts. Bug ASTERISK-309

------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=1941