Summary: | net-misc/asterisk-18.8.0-r1: start process remains appended (/bin/sh /lib/rc/sh/openrc-run.sh /etc/init.d/asterisk start) | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Agostino Sarubbo <ago> |
Component: | Current packages | Assignee: | Jaco Kroon <jaco> |
Status: | RESOLVED INVALID | ||
Severity: | normal | CC: | proxy-maint |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Agostino Sarubbo
![]() ~ # strace -p 12244 strace: Process 12244 attached wait4(-1, Hi Ago, This was as per original design. The wrapper loop has since moved out, and now it looks like: 28284 ? SN 0:00 /bin/bash /usr/sbin/asterisk_wrapper --syslog --instance xxx --rundir /run/asterisk.xxx --restartdelay 5 --dumpcore unlimited --corerename core-%H-%D-%T --maxfd 4096 -- -C /etc/asterisk.xxx/asterisk.conf -f -g -U ast_xxx 28316 ? SN 0:00 \_ /bin/bash /usr/sbin/asterisk_wrapper --syslog --instance xxx --rundir /run/asterisk.xxx --restartdelay 5 --dumpcore unlimited --corerename core-%H-%D-%T --maxfd 4096 -- -C /etc/asterisk.xxx/asterisk.conf -f -g -U ast_xxx 28317 ? SN 0:00 | \_ logger -t asterisk_wrapper:xxx 28319 ? SNl 74:11 \_ /usr/sbin/asterisk -C /etc/asterisk.xxx/asterisk.conf -f -g -U ast_xxx (This is using the multi-instance functionality.) I trust that this should sort you out, I still don't like the fact that there are two bash processes here, but I haven't investigated yet why that happens. Based on the logger sub-process, I suspect it has something to do with this snippet of code: 98 # Before here will still be output (potentially munged, to the terminal). 99 if [[ -n "${syslog}" ]]; then 100 exec 1> >(logger -t "asterisk_wrapper${instance:+:}${instance}" &>/dev/null) 101 exec 2>&1 102 fi from the wrapper itself. Marking as INVALID since this is already "fixed". The problem is that originally we used a "simple" function() inside of the init script to act as this wrapper. |