/var/run/dbmail disappears

Bug #117793 reported by ajake
6
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_var_run_dir()
- {
- 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)
        log_daemon_msg "Starting $DESC"
- 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

Tags: bitesize patch

Related branches

ajake (ajake)
description: updated
Revision history for this message
Luca Falavigna (dktrkranz) wrote :

Thank you for your bug report.

Changed in dbmail:
assignee: nobody → dktrkranz
status: Unconfirmed → In Progress
Revision history for this message
Luca Falavigna (dktrkranz) wrote :

Attached debdiff should fix this.

Changed in dbmail:
assignee: dktrkranz → nobody
status: In Progress → Confirmed
Revision history for this message
Daniel T Chen (crimsun) wrote :

The unconditional removal of /etc/dbmail is worrisome. What's the rationale for this change?

Changed in dbmail:
importance: Undecided → Medium
status: Confirmed → Needs Info
Revision history for this message
Luca Falavigna (dktrkranz) wrote :

Debdiff updated reflecting Daniel's comment.

Changed in dbmail:
status: Needs Info → Confirmed
Daniel T Chen (crimsun)
Changed in dbmail:
status: Confirmed → Fix Committed
Revision history for this message
Luca Falavigna (dktrkranz) wrote :

Package built. Thank you.

Changed in dbmail:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.