asterisk-config is running asterisk_fix from package asterisk.

Thiago Martins thiago at principaltelecom.com.br
Tue Jul 18 19:46:22 UTC 2006


> > And...
> > 
> >  The script asterisk_fix is in the
> > asterisk_1.2.10.dfsg-1.dapper.2078_all.deb package and when
> > asterisk-config_1.2.10.dfsg-1.dapper.2078_all.deb is installed or
> > reconfigured, the /usr/share/asterisk/bin/asterisk_fix is executed.
> > 
> > * First, there is NO packages "asterisk*" installed, this is a fresh and
> > first install on this machine, no update from asterisk-1.2.9.1...
> > 
> >  The dirs are created and somethings now works, but:
> > 
> > 1) When the scripts detects that a user asterisk don't exist and will
> > create then, I see this warning:
> > 
> > ....
> > Setting up asterisk-config (1.2.10.dfsg-1.dapper.2078) ...
> > + getent passwd asterisk
> > + adduser --system --group --home /var/lib/asterisk --gecos 'Asterisk
> > PBX daemon' asterisk
> > adduser: Warning: The home dir you specified already exists.
> 
> Expected. Harmless (/var/lib/asterisk)
Ok.

> > Adding system user `asterisk'...
> > Adding new group `asterisk' (103).
> > Adding new user `asterisk' (103) with group `asterisk'.
> > The home directory `/var/lib/asterisk' already exists.  Not copying from
> > `/etc/skel'
> > adduser: Warning: that home directory does not belong to the user you
> > are currently creating
> > + for group in dialout audio
> > ....
> > 
> >  I think that another package already create this dir...
> 
> Harmless.
Ok.


> > 2) And for this first time of the install I see this:
> > 
> > ....
> >  + invoke-rc.d asterisk restart
> > invoke-rc.d: unknown initscript, /etc/init.d/asterisk not found.
> > + true
> 
> /etc/init.d/asterisk should be in the package asterisk . If not, it is a
> big problem.

 No. asterisk init script is in the package asterisk.

 But at the time of install all the *.deb files, package asterisk It is
pending for setup, so the asterisk init script is not found. And after
this I run "dpkg-reconfigure asterisk-config" and it's (asterisk_fix)
works correctly, because all packages already setting up and the init
script is on the right place.

> > Setting up asterisk-sounds-main (1.2.10.dfsg-1.dapper.2078) ...
> > Setting up asterisk-classic (1.2.10.dfsg-1.dapper.2078) ...
> > Setting up asterisk (1.2.10.dfsg-1.dapper.2078) ...
> > Asterisk not yet configured. Edit /etc/default/asterisk first.
> > 
> >  But if I run `dpkg-reconfigure asterisk-config'...:
> > 
> > # dpkg-reconfigure asterisk-config
> > ....
> > + chown -R
> > asterisk.asterisk /var/log/asterisk /var/run/asterisk /var/spool/asterisk /var/lib/asterisk /etc/asterisk
> > + invoke-rc.d asterisk restart
> > Asterisk not yet configured. Edit /etc/default/asterisk first.
> 
> I don't like that defualt. I think that asterisk should run by default
> and there should be no need to edit that config file. What do you think?

 I agree with you, there is no need to edit that config file. Asterisk
can run safely after installed.

> > 3) When I purge "asterisk*" packages, the spool dir remains in
> > the /var/spool/asterisk without owner, but /var/run/asterisk and other
> > are removed correctly.
> > 
> >  I think this happens because the /var/run/asterisk is installed by
> > "dh_installdirs var/run/asterisk" in debian/rules
> > and /var/spool/asterisk and others are created/managed by asterisk_fix
> > script, so, I must take care about it. It's right?!
> 
> Are there any files left in /var/spool/asterisk ?

No. The dir remains empty. And it's always empty.

ps.: I have install and purge the packages: asterisk, asterisk-classic,
asterisk-config and asterisk-sounds-main.

> >  The asterisk_fix is the best way of doing this stuffs?!
> > 
> > PS.: Sorry about my spell errors... I'm in pt_BR domain...  :-P
> > 
> > Att,
> > Thiago





More information about the Pkg-voip-maintainers mailing list