1 |
chtekk 08/04/17 07:57:58 |
2 |
|
3 |
Modified: proftpd.rc6 |
4 |
Removed: proftpd-1.3.1_rc3-mod_mysql.patch |
5 |
Log: |
6 |
Version bump to ProFTPd 1.3.1. |
7 |
(Portage version: 2.1.5_rc4) |
8 |
|
9 |
Revision Changes Path |
10 |
1.12 net-ftp/proftpd/files/proftpd.rc6 |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-ftp/proftpd/files/proftpd.rc6?rev=1.12&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-ftp/proftpd/files/proftpd.rc6?rev=1.12&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-ftp/proftpd/files/proftpd.rc6?r1=1.11&r2=1.12 |
15 |
|
16 |
Index: proftpd.rc6 |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/net-ftp/proftpd/files/proftpd.rc6,v |
19 |
retrieving revision 1.11 |
20 |
retrieving revision 1.12 |
21 |
diff -u -r1.11 -r1.12 |
22 |
--- proftpd.rc6 23 Sep 2006 19:07:05 -0000 1.11 |
23 |
+++ proftpd.rc6 17 Apr 2008 07:57:57 -0000 1.12 |
24 |
@@ -1,7 +1,9 @@ |
25 |
#!/sbin/runscript |
26 |
-# Copyright 1999-2004 Gentoo Foundation |
27 |
+# Copyright 1999-2008 Gentoo Foundation |
28 |
# Distributed under the terms of the GNU General Public License v2 |
29 |
-# $Header: /var/cvsroot/gentoo-x86/net-ftp/proftpd/files/proftpd.rc6,v 1.11 2006/09/23 19:07:05 chtekk Exp $ |
30 |
+# $Header: /var/cvsroot/gentoo-x86/net-ftp/proftpd/files/proftpd.rc6,v 1.12 2008/04/17 07:57:57 chtekk Exp $ |
31 |
+ |
32 |
+opts="${opts} reload" |
33 |
|
34 |
depend() { |
35 |
need net |
36 |
@@ -14,6 +16,9 @@ |
37 |
eerror "There is a sample file in /etc/proftpd." |
38 |
return 1 |
39 |
fi |
40 |
+ ebegin "Checking proftpd configuration" |
41 |
+ /usr/sbin/proftpd -t -c /etc/proftpd/proftpd.conf &>/dev/null |
42 |
+ eend $? "Configuration error: please fix your configuration file (/etc/proftpd/proftpd.conf)." |
43 |
} |
44 |
|
45 |
start() { |
46 |
@@ -28,3 +33,14 @@ |
47 |
start-stop-daemon --stop --retry 20 --quiet --pidfile /var/run/proftpd.pid |
48 |
eend $? |
49 |
} |
50 |
+ |
51 |
+reload() { |
52 |
+ if [ ! -f /var/run/proftpd.pid ] ; then |
53 |
+ eerror "proftpd isn't running!" |
54 |
+ return 1 |
55 |
+ fi |
56 |
+ checkconfig || return 1 |
57 |
+ ebegin "Reloading proftpd" |
58 |
+ kill -HUP `cat /var/run/proftpd.pid` &>/dev/null |
59 |
+ eend $? |
60 |
+} |
61 |
|
62 |
|
63 |
|
64 |
-- |
65 |
gentoo-commits@l.g.o mailing list |