[asterisk-bugs] [JIRA] (ASTERISK-20851) Asterisk user/group flags ignored by daemon function in /etc/rc.d/init.d/functions

Joshua Colp (JIRA) noreply at issues.asterisk.org
Tue Dec 19 05:13:08 CST 2017


     [ https://issues.asterisk.org/jira/browse/ASTERISK-20851?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Joshua Colp updated ASTERISK-20851:
-----------------------------------

    Affects Version/s: 13.18.4

> Asterisk user/group flags ignored by daemon function in /etc/rc.d/init.d/functions
> ----------------------------------------------------------------------------------
>
>                 Key: ASTERISK-20851
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-20851
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Contrib/General
>    Affects Versions: 10.8.0-digiumphones, 13.18.4
>         Environment: CentOS release 6.3
>            Reporter: Sverre G
>
> Starting asterisk using:
> $ /usr/sbin/safe_asterisk -U asterisk -G asterisk -c
> And asterisk correctly starts with the user asterisk:
> $ ps aux | grep asterisk
> root      9448  0.0  0.0 106092   672 pts/0    S    15:53   0:00 /bin/sh /usr/sbin/safe_asterisk -U asterisk -G asterisk -c
> asterisk  9450  1.6  2.6 1151832 27520 pts/0   Sl   15:53   0:00 /usr/sbin/asterisk -f -U asterisk -G asterisk -c -vvvg -c
> root      9495  0.0  0.0 103244   828 pts/0    S+   15:53   0:00 grep asterisk
> But start asterisk using the daemon function (called by /etc/init.d/rc.d/asterisk) and the -U and -G flag is ignored:
> $ . /etc/rc.d/init.d/functions
> $ daemon sh -c "/usr/sbin/safe_asterisk -U asterisk -G asterisk -c"
>                                              [  OK  ]
> $ ps aux | grep asterisk
> root      9510  0.0  0.0 106092   676 pts/0    S    15:55   0:00 /bin/sh /usr/sbin/safe_asterisk
> root      9512  4.6  2.6 1151884 27316 pts/0   Sl   15:55   0:00 /usr/sbin/asterisk -f -vvvg -c
> root      9556  0.0  0.0 103244   832 pts/0    S+   15:55   0:00 grep asterisk



--
This message was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list