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