summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJerry Alexandratos <jerry@gentoo.org>2001-07-21 07:57:32 +0000
committerJerry Alexandratos <jerry@gentoo.org>2001-07-21 07:57:32 +0000
commitde07c7205062064dbb54cd31c6dcf0f84551c991 (patch)
tree8f100be7f7c5d2dadfaa84689f760b336a2ef23a /net-ftp/proftpd/files
parentFixed typo in link for /usr/bin/ncftp -> /usr/bin/ftp. (diff)
downloadgentoo-2-de07c7205062064dbb54cd31c6dcf0f84551c991.tar.gz
gentoo-2-de07c7205062064dbb54cd31c6dcf0f84551c991.tar.bz2
gentoo-2-de07c7205062064dbb54cd31c6dcf0f84551c991.zip
Added init.d startup script. Modified ebuilds to install startup
script into /etc/rc.d/init.d.
Diffstat (limited to 'net-ftp/proftpd/files')
-rw-r--r--net-ftp/proftpd/files/proftpd29
1 files changed, 29 insertions, 0 deletions
diff --git a/net-ftp/proftpd/files/proftpd b/net-ftp/proftpd/files/proftpd
new file mode 100644
index 000000000000..fcbc7bfa441b
--- /dev/null
+++ b/net-ftp/proftpd/files/proftpd
@@ -0,0 +1,29 @@
+#!/bin/sh
+#RCUPDATE:2 3 4:78:This line is required for script management
+
+. /etc/rc.d/config/functions
+
+SERVICE=proftpd
+opts="start stop restart"
+
+PIDFILE=/var/run/proftpd.pid
+EXE=/usr/sbin/proftpd
+
+start() {
+ ebegin "Starting $SERVICE..."
+ start-stop-daemon --start --quiet --exec $EXE -- -d -p $PIDFILE
+ eend $? "Started $SERVICE." "Error Starting $SERVICE."
+}
+
+stop() {
+ ebegin "Stopping $SERVICE..."
+ start-stop-daemon --stop --quiet --pidfile $PIDFILE --exec $EXE
+ eend $? "Stopped $SERVICE." "Error Stopping $SERVICE."
+}
+
+restart() {
+ stop
+ start
+}
+
+doservice ${@}