[asterisk-bugs] [JIRA] (ASTERISK-28332) Variable ALTCONF ignored when service is used in Debian
Benjamin Keith Ford (JIRA)
noreply at issues.asterisk.org
Mon Mar 11 08:58:47 CDT 2019
[ https://issues.asterisk.org/jira/browse/ASTERISK-28332?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Benjamin Keith Ford updated ASTERISK-28332:
-------------------------------------------
Status: Open (was: Triage)
> Variable ALTCONF ignored when service is used in Debian
> -------------------------------------------------------
>
> Key: ASTERISK-28332
> URL: https://issues.asterisk.org/jira/browse/ASTERISK-28332
> Project: Asterisk
> Issue Type: Bug
> Security Level: None
> Components: General
> Affects Versions: 13.25.0, 16.2.1
> Environment: Linux XXXXX 3.16.0-5-amd64 #1 SMP Debian 3.16.51-3+deb8u1 (2018-01-08) x86_64 GNU/Linux
> Reporter: Cirillo Ferreira
> Assignee: Cirillo Ferreira
> Severity: Minor
>
> The variable ALTCONF is ignored when defined at file /etc/default/asterisk.
> The start command prints following message:
> {code}
> root at XXXXX:/var/log/asterisk# service asterisk start
> root at XXXXX:/var/log/asterisk# service asterisk status
> ● asterisk.service - LSB: Asterisk PBX
> Loaded: loaded (/etc/init.d/asterisk)
> Active: active (running) since Fri 2019-03-08 17:02:16 -03; 1s ago
> Process: 4239 ExecStop=/etc/init.d/asterisk stop (code=exited, status=0/SUCCESS)
> Process: 4267 ExecStart=/etc/init.d/asterisk start (code=exited, status=0/SUCCESS)
> CGroup: /system.slice/asterisk.service
> └─4279 /usr/sbin/asterisk -C "/etc/asterisk/asterisk.conf" -g -v -F
> Mar 08 17:02:16 XXXXX asterisk[4267]: Starting Asterisk PBX: asteriskUnable to open specified master config file '"/etc/asterisk/asteris...defaults
> Mar 08 17:02:16 XXXXX asterisk[4267]: .
> Mar 08 17:02:16 XXXXX systemd[1]: Started LSB: Asterisk PBX.
> Hint: Some lines were ellipsized, use -l to show in full.
> {code}
> If we consider that can't has space in the path of file, then
> the workaround is to remove the quotes around ALTCONF at file /etc/init.d/asterisk
> {code}
> if [ $ALTCONF ]; then
> ASTARGS="$ASTARGS -C \"$ALTCONF\""
> fi
> {code}
> to
> {code}
> if [ $ALTCONF ]; then
> ASTARGS="$ASTARGS -C $ALTCONF"
> fi
> {code}
--
This message was sent by Atlassian JIRA
(v6.2#6252)
More information about the asterisk-bugs
mailing list