23 lines
276 B
Plaintext
23 lines
276 B
Plaintext
|
#! /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
|
||
|
|