Bug#413541: Asterisk does not create /var/run/asterisk directory if not existent

Tzafrir Cohen tzafrir.cohen at xorcom.com
Mon Mar 5 19:52:57 UTC 2007


On Mon, Mar 05, 2007 at 06:54:00PM +0100, Martin Jürgens wrote:
> Package:  asterisk
> Version: 1:1.2.16~dfsg-1
> 
> Asterisk does not create /var/run/asterisk directory if not existent.

How could that happen?

> 
> Diff which should solve that:
> 
> diff -u asterisk-1.2.16~dfsg/debian/asterisk.init
> asterisk-1.2.16~dfsg/debian/asterisk.init
> --- asterisk-1.2.16~dfsg/debian/asterisk.init
> +++ asterisk-1.2.16~dfsg/debian/asterisk.init
> @@ -71,6 +71,11 @@
>  
>  set -e
>  
> +if [ ! -e `dirname $PIDFILE` ];then

Speaking of posix-shell-strictness: is '[ -e' valid?

> +       mkdir `dirname $PIDFILE`
> +       chown $USER.$GROUP `dirname $PIDFILE`

$USER:$GROUP

> +fi
> +
>  if [ "$UMASK" != '' ]
>  then
>  	umask $UMASK
> only in patch2:
> unchanged:

Generally I like this.

-- 
               Tzafrir Cohen       
icq#16849755                    jabber:tzafrir at jabber.org
+972-50-7952406           mailto:tzafrir.cohen at xorcom.com       
http://www.xorcom.com  iax:guest at local.xorcom.com/tzafrir




More information about the Pkg-voip-maintainers mailing list