Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 582512 - net-misc/asterisk - updated init script (faster startup in case of large ast_spooldir)
Summary: net-misc/asterisk - updated init script (faster startup in case of large ast_...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Tony Vroon (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-05-09 08:39 UTC by Jaco Kroon
Modified: 2016-07-26 08:11 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
asterisk.initd8 (asterisk.initd8,9.56 KB, text/plain)
2016-05-09 08:39 UTC, Jaco Kroon
Details
asterisk.initd7-initd8.diff (asterisk.initd7-initd8.diff,3.95 KB, patch)
2016-05-09 08:43 UTC, Jaco Kroon
Details | Diff
asterisk.init8 (asterisk,9.56 KB, text/plain)
2016-06-30 12:54 UTC, Jaco Kroon
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jaco Kroon 2016-05-09 08:39:56 UTC
Created attachment 433716 [details]
asterisk.initd8

In cases where we have large spooldirs (presumably due to recorings) it can take a very, very long time for asterisk to start up (worst case I've seen is a just over an hour with about 1.4TB worth of recordings).

I've made some changes to the init script to improve the following:

* startup time improvements by removing full sub-path checks for permissions checks (checks top-level folders now only)
* full checks are still available via checkperms actions.
* improved ASTERISK_USER splitting into ast_user and ast_group (no more sub processes).
* Improved ownership+permissions check for coredir (based on ast_user+ast_group now instead of direct ASTERISK_USER).
Comment 1 Jaco Kroon 2016-05-09 08:43:29 UTC
Created attachment 433718 [details, diff]
asterisk.initd7-initd8.diff

For informational purposes, the diff from initd7 to initd8.
Comment 2 Jaco Kroon 2016-06-30 12:54:20 UTC
Created attachment 439224 [details]
asterisk.init8

Updated #! line and copyright line as per IRC request from Tony.
Comment 3 Tony Vroon (RETIRED) gentoo-dev 2016-07-26 08:11:28 UTC
This is in the tree on the 11.23.0  & 13.10.0 ebuilds. Thank you :)