i use next code in init scripts

                if [ ! -d /var/run/dbmail ]; then
                    mkdir /var/run/dbmail
                    chown $USER.$GROUP /var/run/dbmail
                fi


09.01.14 18:51, Reindl Harald ?????:
Am 09.01.2014 15:38, schrieb Ken Drummond:
thanks for maintaining dbmail for gentoo. I seem to have a problem with the 
.pid file in 3.1.7.  After a reboot I get

  dbmail-imapd[3704]: [0x750230] EMERGENCY:[pidfile] pidfile_create(+113): 
Cannot open pidfile
[/var/run/dbmail/dbmail-imapd.pid], error was [No such file or directory]

in /var/log/dbmail.err when I try to start dbmail.  Somehow the /run/dbmail 
directory gets deleted (/var/run is a
symlink to /run). I'm not really sure why it's using the dbmail subdirectory 
because the /etc/dbmail/dbmail.conf
file I have

pid_directory = /var/run

in the [DBMAIL] section.

Not really sure if this is a gentoo specific error, and it's easily fixed by 
manually creating the dbmail
directory.  My server normally stays up for months at a time so not a huge 
impact, but I do need to remember
an go and manually fix things when a reboot happens
i guess you are using systemd

/run is a tmpfs andany software package using subfoldfers there needs tmpfiles.d
http://www.freedesktop.org/software/systemd/man/tmpfiles.d.html

[root@mail:~]$ cat /usr/lib/tmpfiles.d/dbmail.conf
d /run/dbmail 0755 dbmail dbmail -

[root@mail:~]$ rpm -q --file /usr/lib/tmpfiles.d/dbmail.conf
dbmail-3.1.9-4.fc19.20140107.rh.e5ad1e579562e22fc215b6186696eaba07213cb1.x86_64



_______________________________________________
DBmail mailing list
[email protected]
http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail


!DSPAM:17,52ceb91d318051630913421!

_______________________________________________
DBmail mailing list
[email protected]
http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail

Reply via email to