asterisk/contrib/init.d
Sean Bright 61c8f9b225 contrib: rc.archlinux.asterisk uses invalid redirect.
`rc.archlinux.asterisk`, which explicitly requests bash in its
shebang, uses the following command syntax:

  ${DAEMON} -rx "core stop now" > /dev/null 2&>1

The intent of which is to execute:

  ${DAEMON} -rx "core stop now"

While sending both stdout and stderr to `/dev/null`. Unfortunately,
because the `&` is in the wrong place, bash is interpreting the `2` as
just an additional argument to the `$DAEMON` command and not as a file
descriptor and proceeds to use the bashism `&>` to send stderr and
stdout to a file named `1`.

So we clean it up and just use bash's shortcut syntax.

Issue raised and a fix suggested (but not used) by peutch on GitHub¹.

ASTERISK-30449 #close

1. https://github.com/asterisk/asterisk/pull/31

Change-Id: Ie279bf4efb4d95cbf507313483d316e977303d19
(cherry picked from commit 46bdd5e3be)
2023-05-08 18:13:35 +00:00
..
etc_default_asterisk Added clarification for the VERBOSITY setting to etc_default_asterisk 2012-02-01 15:07:24 +00:00
org.asterisk.asterisk.plist Merged revisions 297821 via svnmerge from 2010-12-07 22:54:00 +00:00
org.asterisk.muted.plist Merged revisions 297821 via svnmerge from 2010-12-07 22:54:00 +00:00
rc.archlinux.asterisk contrib: rc.archlinux.asterisk uses invalid redirect. 2023-05-08 18:13:35 +00:00
rc.debian.asterisk contrib: Spelling fixes 2021-11-16 06:02:11 -06:00
rc.gentoo.asterisk Update init.d scripts to handle stderr; readd splash screen for remote consoles 2013-01-21 20:41:12 +00:00
rc.mandriva.asterisk Remove as much trailing whitespace as possible. 2017-12-22 09:23:22 -05:00
rc.mandriva.zaptel Remove as much trailing whitespace as possible. 2017-12-22 09:23:22 -05:00
rc.redhat.asterisk Remove as much trailing whitespace as possible. 2017-12-22 09:23:22 -05:00
rc.slackware.asterisk Remove as much trailing whitespace as possible. 2017-12-22 09:23:22 -05:00
rc.suse.asterisk Remove as much trailing whitespace as possible. 2017-12-22 09:23:22 -05:00