From d85fc1b055ff6064f261a6977c692594a938f1e1 Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Tue, 5 Dec 2006 10:59:12 +0000 Subject: [PATCH] Add a reload function to the init script, #157139 thanks to Marshal Newrock. Package-Manager: portage-2.1.2_rc2-r5 --- net-mail/dovecot/ChangeLog | 5 ++++- net-mail/dovecot/Manifest | 16 +++++++-------- net-mail/dovecot/files/dovecot.init | 32 ++++++++++++++++++----------- 3 files changed, 32 insertions(+), 21 deletions(-) diff --git a/net-mail/dovecot/ChangeLog b/net-mail/dovecot/ChangeLog index 52daad4f8809..de9a39dc03e8 100644 --- a/net-mail/dovecot/ChangeLog +++ b/net-mail/dovecot/ChangeLog @@ -1,6 +1,9 @@ # ChangeLog for net-mail/dovecot # Copyright 2000-2006 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-mail/dovecot/ChangeLog,v 1.79 2006/11/25 15:46:33 kloeri Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-mail/dovecot/ChangeLog,v 1.80 2006/12/05 10:59:12 uberlord Exp $ + + 05 Dec 2006; Roy Marples files/dovecot.init: + Add a reload function to the init script, #157139 thanks to Marshal Newrock. 25 Nov 2006; Bryan Østergaard dovecot-1.0_rc15.ebuild: diff --git a/net-mail/dovecot/Manifest b/net-mail/dovecot/Manifest index 183782cc7df6..bf28c3fe3d1c 100644 --- a/net-mail/dovecot/Manifest +++ b/net-mail/dovecot/Manifest @@ -1,7 +1,7 @@ -AUX dovecot.init 619 RMD160 b0693a3f1e4aa34f2db5389e29d79b7e669622a8 SHA1 408fc13f5a9ccd8b40e7f82f99e3b18912e24c1f SHA256 833c2121376e753c0a983cedc3854a855bce9b3765f6479aa15cad9acb23ca43 -MD5 155396035a3ecb1f5171b0432072181b files/dovecot.init 619 -RMD160 b0693a3f1e4aa34f2db5389e29d79b7e669622a8 files/dovecot.init 619 -SHA256 833c2121376e753c0a983cedc3854a855bce9b3765f6479aa15cad9acb23ca43 files/dovecot.init 619 +AUX dovecot.init 878 RMD160 32906bdbf40221017c4f39a7ca0e3fa97070b9ab SHA1 f31c1476107dd4ca4919fe3e994ef6cb82f5a8c1 SHA256 1bd24e14af5536828d3e232186d5ae68d3e394da3324c660fa1e658b4ae3b413 +MD5 6d3e44da73ef66d20b42a5fad49731f0 files/dovecot.init 878 +RMD160 32906bdbf40221017c4f39a7ca0e3fa97070b9ab files/dovecot.init 878 +SHA256 1bd24e14af5536828d3e232186d5ae68d3e394da3324c660fa1e658b4ae3b413 files/dovecot.init 878 DIST dovecot-1.0.beta8.tar.gz 1392106 RMD160 101a7011467691ba5f4a6f48e21d6d1dc5626c16 SHA1 fedd38c29a2bc396df386636ed5d8b65ecab0ff6 SHA256 b43bb6ea5426b0d78ae260b53be035d1b5371b76a342870b2d56a6aba1ad82d2 DIST dovecot-1.0.rc15.tar.gz 1463069 RMD160 904ef7d1f0fbfe8055f13d9036f7107f498b522e SHA1 9b618d0c1562aa64bd1e055ffa9fe5f2412514af SHA256 e1e42e5c808301c5a709d54c5949cd8c1d3c43861e4e918548ded5841865487f EBUILD dovecot-1.0_beta8.ebuild 4639 RMD160 3e1f5b8b75852f638cbc42e20b2ff0026863d2bd SHA1 56114bbef706eaa2fd0c963fb1243b8e4ef23e1d SHA256 4e5e3c289bae8a357a7e4a3d28e66366fd826930c267fa0886e55349c92d5ca5 @@ -12,10 +12,10 @@ EBUILD dovecot-1.0_rc15.ebuild 5318 RMD160 78a83e7c4b0016c07df28daedfd5beb0f588d MD5 61d0c3649db044745ecb0036357d9ee9 dovecot-1.0_rc15.ebuild 5318 RMD160 78a83e7c4b0016c07df28daedfd5beb0f588df85 dovecot-1.0_rc15.ebuild 5318 SHA256 347aacb737d18250e7a209678a94055d0b01c290cd778ad9607559b975665ab2 dovecot-1.0_rc15.ebuild 5318 -MISC ChangeLog 13671 RMD160 3b4d290748676cfb53a8e93491f77dca0e5bbe13 SHA1 11b21ff6b0a8102b31325e63c72bed766d0c1fd9 SHA256 42a4cbe5048aafd9c9675360e6da996013d267792a0e07e9c6f290745168fe26 -MD5 2a1fd5b0280cd9d515a9e45c2809c3cc ChangeLog 13671 -RMD160 3b4d290748676cfb53a8e93491f77dca0e5bbe13 ChangeLog 13671 -SHA256 42a4cbe5048aafd9c9675360e6da996013d267792a0e07e9c6f290745168fe26 ChangeLog 13671 +MISC ChangeLog 13822 RMD160 47d1c1960db1f901057f1a68581ffc02a206446c SHA1 b3fce99a3e91442352d41560cbbfbd27cacdb240 SHA256 40483f13caf0356aac7558595ff4b960e857cfe4d3584bb5ab5d514a3b5dd3ce +MD5 2962f2c2573ce82a5cb1f56d46f5d625 ChangeLog 13822 +RMD160 47d1c1960db1f901057f1a68581ffc02a206446c ChangeLog 13822 +SHA256 40483f13caf0356aac7558595ff4b960e857cfe4d3584bb5ab5d514a3b5dd3ce ChangeLog 13822 MISC metadata.xml 252 RMD160 97c0c41abc4b61586ab48653ced79067cb964aa6 SHA1 57de811cfb02936b35c4bef2108018e6b2697a99 SHA256 419ffa57f459d89a62dd42ee4bb01934f03e6913b470323f5b2b8a7c89e2dc66 MD5 b6ff89c08602229bdd234da83a89df77 metadata.xml 252 RMD160 97c0c41abc4b61586ab48653ced79067cb964aa6 metadata.xml 252 diff --git a/net-mail/dovecot/files/dovecot.init b/net-mail/dovecot/files/dovecot.init index 54746cba5a9e..f97ab7459aaa 100644 --- a/net-mail/dovecot/files/dovecot.init +++ b/net-mail/dovecot/files/dovecot.init @@ -1,25 +1,33 @@ #!/sbin/runscript # Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License, v2 or later -# $Header: /var/cvsroot/gentoo-x86/net-mail/dovecot/files/dovecot.init,v 1.3 2005/12/14 23:32:08 uberlord Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-mail/dovecot/files/dovecot.init,v 1.4 2006/12/05 10:59:12 uberlord Exp $ + +opts="${opts} reload" depend() { - need net - after saslauthd ldap slapd postgresql mysql - use logger + need net + after saslauthd ldap slapd postgresql mysql + use logger } start() { - ebegin "Starting dovecot" - start-stop-daemon --start --exec /usr/sbin/dovecot \ - --pidfile /var/run/dovecot/master.pid - eend $? + ebegin "Starting dovecot" + start-stop-daemon --start --exec /usr/sbin/dovecot \ + --pidfile /var/run/dovecot/master.pid + eend $? } stop() { - ebegin "Stopping dovecot" - start-stop-daemon --stop --exec /usr/sbin/dovecot \ - --pidfile /var/run/dovecot/master.pid - eend $? + ebegin "Stopping dovecot" + start-stop-daemon --stop --exec /usr/sbin/dovecot \ + --pidfile /var/run/dovecot/master.pid + eend $? } +reload() { + ebegin "Reloading dovecot configs and restarting auth/login processes" + start-stop-daemon --stop --oknodo --exec /usr/sbin/dovecot \ + --pidfile /var/run/dovecot/master.pid --signal HUP + eend $? +} -- 2.26.2