asterisk.init fails when /var/run is tmpfs
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
asterisk (Ubuntu) |
Fix Released
|
Medium
|
Paul Sladen |
Bug Description
This package is merged from Debian sid, but on Debian, the dir /var/run isn't on a TMPFS. So, on Ubuntu, the init script _must_ manage this stuff.
I have added to line 71 of my asterisk.init the following function:
--- asterisk.init ---
check_privsep_dir() {
# Create the PrivSep empty dir if necessary
if [ ! -d /var/run/asterisk ]; then
mkdir /var/run/asterisk
chown asterisk:asterisk /var/run/asterisk
chmod 0775 /var/run/asterisk
fi
}
...
and for start, reload and restart actions, I put in the beginning of each one:
--- asterisk.init ---
start)
if status > /dev/null; then
...
and the same for others actions.
We can remove the following line of variable `dirs' in asterisk_fix script:
dirs="
...
- /var/run/asterisk
"
That's it!
Thiago
Changed in asterisk: | |
status: | Unconfirmed → Needs Info |
Changed in asterisk: | |
importance: | Undecided → Medium |
assignee: | nobody → sladen |
status: | Needs Info → In Progress |
Just a patch to asterisk.init.