/[smeserver]/rpms/proftpd/sme8/proftpd.init
ViewVC logotype

Contents of /rpms/proftpd/sme8/proftpd.init

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (show annotations) (download)
Thu Nov 11 15:50:25 2010 UTC (13 years, 11 months ago) by slords
Branch: MAIN
CVS Tags: proftpd-1_3_2-1_rf, HEAD
Initial import

1 #!/bin/sh
2 # $Id: proftpd.init,v 1.1 2004/02/26 17:54:30 thias Exp $
3 #
4 # proftpd This shell script takes care of starting and stopping
5 # proftpd.
6 #
7 # chkconfig: - 80 30
8 # description: ProFTPd is an enhanced FTP server with a focus towards \
9 # simplicity, security, and ease of configuration. \
10 # It features a very Apache-like configuration syntax, \
11 # and a highly customizable server infrastructure, \
12 # including support for multiple 'virtual' FTP servers, \
13 # anonymous FTP, and permission-based directory visibility.
14 # processname: proftpd
15 # config: /etc/proftp.conf
16 # pidfile: /var/run/proftpd.pid
17
18 ### BEGIN INIT INFO
19 # Provides: proftpd ftpserver
20 # Required-Start: $local_fs $network $named $remote_fs
21 # Required-Stop: $local_fs $network $named $remote_fs
22 # Short-Description: ProFTPd FTP Server
23 # Description: ProFTPd is an enhanced FTP server with a focus towards
24 # simplicity, security, and ease of configuration.
25 # It features a very Apache-like configuration syntax,
26 # and a highly customizable server infrastructure,
27 # including support for multiple 'virtual' FTP servers,
28 # anonymous FTP, and permission-based directory visibility.
29 ### END INIT INFO
30
31 # Source function library.
32 . /etc/rc.d/init.d/functions
33
34 # Source networking configuration.
35 . /etc/sysconfig/network
36
37 # Check that networking is up.
38 [ ${NETWORKING} = "no" ] && exit 0
39
40 [ -x /usr/sbin/proftpd ] || exit 0
41
42 RETVAL=0
43
44 prog="proftpd"
45
46 start() {
47 echo -n $"Starting $prog: "
48 daemon proftpd 2>/dev/null
49 RETVAL=$?
50 echo
51 [ $RETVAL -eq 0 ] && touch /var/lock/subsys/proftpd
52 }
53
54 stop() {
55 echo -n $"Shutting down $prog: "
56 killproc proftpd
57 RETVAL=$?
58 echo
59 [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/proftpd
60 }
61
62 # See how we were called.
63 case "$1" in
64 start)
65 start
66 ;;
67 stop)
68 stop
69 ;;
70 status)
71 status proftpd
72 RETVAL=$?
73 ;;
74 restart)
75 stop
76 start
77 ;;
78 try-restart|condrestart)
79 if [ -f /var/lock/subsys/proftpd ]; then
80 stop
81 start
82 fi
83 ;;
84 reload|force-reload)
85 echo -n $"Re-reading $prog configuration: "
86 killproc proftpd -HUP
87 RETVAL=$?
88 echo
89 ;;
90 *)
91 echo "Usage: $prog {start|stop|restart|try-restart|reload|status}"
92 exit 2
93 esac
94
95 exit $RETVAL

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed