On 11/25/2009 10:17 PM Bernhard Schmidt wrote:
> Pascal Volk <user+dove...@localhost.localdomain.org> wrote:
>> +# Required-Start:    $local_fs $syslog
>> +# Required-Stop:     $local_fs $syslog
>> +# Should-Start:      $time
> 
> I think this should be $remote_fs, as according to
> http://refspecs.freestandards.org/LSB_3.1.0/LSB-Core-generic/LSB-Core-generic/facilname.html
> and http://wiki.debian.org/LSBInitScripts /usr (where dovecot probably
> is located) could be mounted from remote.
> 
> Also I guess $network is a good idea in Required-Start/Stop.

My excuse: When I modified the init script, it was very urgent. ;-)
Yes, mails could also be located on a $remote_fs. Many Dovecot
installations uses SQL backends from the same host for passdb/userdb
lookups. So I'll add postgresql and mysql.
BTW: There is an interesting request for Postfix in the Debian BTS,
'Some proposal for init sequence' <http://bugs.debian.org/543472>


Regards,
Pascal
-- 
The trapper recommends today: 5e1f1e55.0932...@localdomain.org
# HG changeset patch
# User Pascal Volk <u...@localhost.localdomain.org>
# Date 1259210088 0
# Branch HEAD
# Node ID 31c202ba1e1f11059562c0e31bff69641d7373d0
# Parent  f8151445662effc240b68903ab9bc42a60c04cc9
doc/dovecot-initd.sh extended LSB run-time dependencies

diff -r f8151445662e -r 31c202ba1e1f doc/dovecot-initd.sh
--- a/doc/dovecot-initd.sh	Wed Nov 25 13:19:42 2009 -0500
+++ b/doc/dovecot-initd.sh	Thu Nov 26 04:34:48 2009 +0000
@@ -1,8 +1,8 @@
 #!/bin/sh
 ### BEGIN INIT INFO
 # Provides:          dovecot
-# Required-Start:    $local_fs $syslog
-# Required-Stop:     $local_fs $syslog
+# Required-Start:    $local_fs $remote_fs $syslog $network postgresql mysql
+# Required-Stop:     $local_fs $remote_fs $syslog $network postgresql mysql
 # Should-Start:      $time
 # Default-Start:     2 3 4 5
 # Default-Stop:      0 1 6

Reply via email to