[Home]

Summary:ASTERISK-17085: [patch] Configuring settings in /etc/defaults/asterisk cause the init.d process to stay on STDOUT
Reporter:Andrew Latham (lathama)Labels:
Date Opened:2010-12-09 08:07:37.000-0600Date Closed:2010-12-17 15:19:12.000-0600
Priority:TrivialRegression?No
Status:Closed/CompleteComponents:General
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:( 0) rc.debian.asterisk.diff
Description:Using the /etc/defaults/asterisk file with

VERBOSITY=3

Continues to put all output to the STDOUT

Commenting the setting makes it work as expected.

#VERBOSITY=3
Comments:By: Andrew Latham (lathama) 2010-12-09 08:12:05.000-0600

I quickly tested all the options in /etc/defaults/asterisk on Debian Squeeze.

VERBOSITY was the only setting that caused this.

For future reference can a category for "init.d", "contribs", "scripts" be added.

By: Leif Madsen (lmadsen) 2010-12-16 09:59:47.000-0600

The /etc/default/asterisk/ directory looks to be something used by the init scripts or something when using a packaged version of Asterisk. This is not supported here. Please file the issue with the people responsible for packaging Asterisk on your system.

By: Andrew Latham (lathama) 2010-12-16 10:03:26.000-0600

SVN checkout and install.  No packaging involved.

Hint:

's|__ASTERISK_ETC_DIR__|$(ASTETCDIR)|;s|__ASTERISK_SBIN_DIR__|$(ASTSBINDIR)|;s|__ASTERISK_VARRUN_DIR__|$(ASTVARRUNDIR)|;' > contrib/init.d/rc.asterisk.tmp ; \
$(INSTALL) -m 755 contrib/init.d/rc.asterisk.tmp $(DESTDIR)/etc/init.d/asterisk ; \
rm -f contrib/init.d/rc.asterisk.tmp ; \
if [ ! -f $(DESTDIR)/etc/default/asterisk ] ; then \
$(INSTALL) -m 644 contrib/init.d/etc_default_asterisk $(DESTDIR)/etc/default/asterisk ; \
fi ; \
if [ -z "$(DESTDIR)" ] ; then \
/usr/sbin/update-rc.d asterisk defaults 50 91 ; \
fi ; \
elif [ -f /etc/gentoo-release ] ; then \
cat contrib/init.d/rc.gentoo.asterisk | sed

By: Leif Madsen (lmadsen) 2010-12-16 10:04:02.000-0600

Nevermind, seems to be a new thing. I have /etc/default/asterisk now after running make config again.

By: Andrew Latham (lathama) 2010-12-17 11:12:20.000-0600

Patch works on Debian Squeeze and Debian Lenny.  Verbose was implying the -f no fork command.  I added the -F to override if the VERBOSE is set.

By: Digium Subversion (svnbot) 2010-12-17 15:18:20.000-0600

Repository: asterisk
Revision: 298827

U   branches/1.8/contrib/init.d/rc.debian.asterisk

------------------------------------------------------------------------
r298827 | tilghman | 2010-12-17 15:18:19 -0600 (Fri, 17 Dec 2010) | 8 lines

-v implies -f, so override with -F.

(closes issue ASTERISK-17085)
Reported by: lathama
Patches:
      rc.debian.asterisk.diff uploaded by lathama (license 1028)
Tested by: lathama

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

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

By: Digium Subversion (svnbot) 2010-12-17 15:19:12.000-0600

Repository: asterisk
Revision: 298833

_U  trunk/
U   trunk/contrib/init.d/rc.debian.asterisk

------------------------------------------------------------------------
r298833 | tilghman | 2010-12-17 15:19:11 -0600 (Fri, 17 Dec 2010) | 15 lines

Merged revisions 298827 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.8

........
 r298827 | tilghman | 2010-12-17 15:18:18 -0600 (Fri, 17 Dec 2010) | 8 lines
 
 -v implies -f, so override with -F.
 
 (closes issue ASTERISK-17085)
  Reported by: lathama
  Patches:
        rc.debian.asterisk.diff uploaded by lathama (license 1028)
  Tested by: lathama
........

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

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