summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'net-wireless/eyefiserver/files/eyefiserverd')
-rw-r--r--net-wireless/eyefiserver/files/eyefiserverd34
1 files changed, 34 insertions, 0 deletions
diff --git a/net-wireless/eyefiserver/files/eyefiserverd b/net-wireless/eyefiserver/files/eyefiserverd
new file mode 100644
index 0000000..1c3cd0c
--- /dev/null
+++ b/net-wireless/eyefiserver/files/eyefiserverd
@@ -0,0 +1,34 @@
+#!/sbin/runscript
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+NAME=eyefiserver
+BINARY=/usr/bin/${NAME}
+PIDFILE=/var/run/${NAME}.pid
+
+depend() {
+ need net
+ use logger
+}
+
+start() {
+ ebegin "Starting Eye-Fi Server"
+ start-stop-daemon \
+ --start \
+ --make-pidfile \
+ --pidfile $PIDFILE \
+ --background \
+ --name $NAME \
+ --exec $BINARY
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping Eye-Fi Server"
+ start-stop-daemon \
+ --stop \
+ --signal 15 \
+ --pidfile $PIDFILE
+ eend $?
+}