[csw-devel] SF.net SVN: gar:[3982] csw/mgar/pkg/dovecot/trunk/files/CSWdovecot. cswdovecot
skayser at users.sourceforge.net
skayser at users.sourceforge.net
Thu Mar 26 21:23:38 CET 2009
Revision: 3982
http://gar.svn.sourceforge.net/gar/?rev=3982&view=rev
Author: skayser
Date: 2009-03-26 20:23:38 +0000 (Thu, 26 Mar 2009)
Log Message:
-----------
dovecot: minor amendments to init script
Modified Paths:
--------------
csw/mgar/pkg/dovecot/trunk/files/CSWdovecot.cswdovecot
Modified: csw/mgar/pkg/dovecot/trunk/files/CSWdovecot.cswdovecot
===================================================================
--- csw/mgar/pkg/dovecot/trunk/files/CSWdovecot.cswdovecot 2009-03-26 20:21:54 UTC (rev 3981)
+++ csw/mgar/pkg/dovecot/trunk/files/CSWdovecot.cswdovecot 2009-03-26 20:23:38 UTC (rev 3982)
@@ -13,8 +13,10 @@
CONF=/opt/csw/etc/dovecot.conf
CONF_LOCAL=/etc/opt/csw/dovecot.conf
-[ -f $CONF_LOCAL ] && CONF=$CONF_LOCAL
+[ -r $CONF_LOCAL ] && CONF=$CONF_LOCAL
+[ "`ulimit -n`" -lt 1024 ] && ulimit -n 1024
+
base_dir=`$DAEMON -a|grep '^base_dir: '|sed 's/^base_dir: //'`
pidfile=$base_dir/master.pid
@@ -27,7 +29,6 @@
case "$1" in
start)
echo "Starting Dovecot"
- ulimit -n 1024
$DAEMON -c $CONF
;;
stop)
@@ -52,11 +53,10 @@
kill `cat $pidfile`
sleep 1
fi
- ulimit -n 1024
$DAEMON -c $CONF
;;
*)
- echo "Usage: /etc/init.d/dovecot {start|stop|reload|restart|force-reload}" >&2
+ echo "Usage: /etc/init.d/cswdovecot {start|stop|reload|restart|force-reload}" >&2
exit 1
;;
esac
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the devel
mailing list