changeset 52:a79555d4ad18

added init.d script
author root <root@beaglebone.(none)>
date Sun, 14 Oct 2012 00:25:26 +0000
parents ee713a19b6ba
children a0ae699ac444
files nodescored
diffstat 1 files changed, 22 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/nodescored	Sun Oct 14 00:25:26 2012 +0000
@@ -0,0 +1,22 @@
+#! /bin/sh
+# /etc/init.d/nodescored
+#
+nodescore
+
+case "$1" in
+  start)
+    nodescore
+    echo "Starting NodeScore "
+    ;;
+  stop)
+    killall node
+    echo "Stopping Nodescore"
+    ;;
+  *)
+    echo "Usage: /etc/init.d/nodescored {start|stop}"
+    exit 1
+    ;;
+esac
+
+exit 0
+