summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'net-misc/uftp/files/uftpd.init')
-rw-r--r--net-misc/uftp/files/uftpd.init24
1 files changed, 24 insertions, 0 deletions
diff --git a/net-misc/uftp/files/uftpd.init b/net-misc/uftp/files/uftpd.init
new file mode 100644
index 000000000000..e2d6a22bc259
--- /dev/null
+++ b/net-misc/uftp/files/uftpd.init
@@ -0,0 +1,24 @@
+#!/sbin/runscript
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+PROGRAM=/usr/sbin/uftpd
+PIDFILE=/var/run/uftpd.pid
+
+depend() {
+ need net
+}
+
+start() {
+ ebegin "Starting uftpd"
+ start-stop-daemon --start --exec ${PROGRAM} -- \
+ -L /var/log/uftpd.log -P ${PIDFILE} -D ${UFTPD_DIR} ${UFTPD_OPTS}
+ eend $? "Failed to start uftpd"
+}
+
+stop() {
+ ebegin "Stopping uftpd"
+ start-stop-daemon --stop --exec ${PROGRAM} -p ${PIDFILE}
+ eend $? "Failed to stop uftpd"
+}