Comment 0 for bug 117793

Revision history for this message
ajake (ajake) wrote :

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 ----