/var/run/dbmail disappears
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
dbmail (Ubuntu) |
Fix Released
|
Medium
|
Unassigned |
Bug Description
Binary package hint: dbmail
In ubuntu /var/run is mounted as a tmpfs filesystem so directories under it must be recreated after each reboot.
patch: (mostly copied from bacula startup script)
*** /etc/init.d/dbmail 2007-05-30 18:59:36.000000000 +0300
--- /etc/init.d/dbmail~ 2007-03-02 13:49:14.000000000 +0200
***************
*** 45,57 ****
[ -e /etc/default/dbmail ] && . /etc/default/dbmail
- create_
- {
- if [ ! -d $PID_DIR ]; then
- mkdir -p -m 0755 $PID_DIR
- fi
- }
-
service_start() {
eval '_daemon=$'$1
eval '_name=$'$1'_NAME'
--- 45,50 ----
***************
*** 110,116 ****
case "$1" in
start)
- create_var_run_dir
r=0
if [ "$START_IMAPD" ]; then service_start "IMAPD" || r=1; fi
if [ "$START_POP3D" ]; then service_start "POP3D" || r=1; fi
--- 103,108 ----
oops, patch is in reverse order
Related branches
description: | updated |
Changed in dbmail: | |
status: | Confirmed → Fix Committed |
Thank you for your bug report.