git://git.onelab.eu
/
nodemanager.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Make usage of sliver auth configurable from the _default slice attribute
[nodemanager.git]
/
nm.init
diff --git
a/nm.init
b/nm.init
index
5ba44e8
..
eda0f11
100755
(executable)
--- a/
nm.init
+++ b/
nm.init
@@
-15,16
+15,16
@@
fi
nm=${NM-"python /usr/share/NodeManager/nm.py"}
prog="Node Manager"
nm=${NM-"python /usr/share/NodeManager/nm.py"}
prog="Node Manager"
-restartoptions=
+options=${OPTIONS-"-d -s"}
+restartoptions=${RESTARTOPTIONS-"-d"}
pidfile=${PIDFILE-/var/run/nm.pid}
lockfile=${LOCKFILE-/var/lock/subsys/nm}
RETVAL=0
do_start()
{
pidfile=${PIDFILE-/var/run/nm.pid}
lockfile=${LOCKFILE-/var/lock/subsys/nm}
RETVAL=0
do_start()
{
- options=$1
echo -n $"Starting $prog: "
echo -n $"Starting $prog: "
- daemon --check=nm $nm
$options
+ daemon --check=nm $nm
"$@"
RETVAL=$?
echo
[ $RETVAL -eq 0 ] && touch ${lockfile}
RETVAL=$?
echo
[ $RETVAL -eq 0 ] && touch ${lockfile}
@@
-33,7
+33,7
@@
do_start()
start()
{
start()
{
- do_start $
{OPTIONS-"-d -s"}
+ do_start $
options
}
stop()
}
stop()
@@
-43,16
+43,12
@@
stop()
RETVAL=$?
echo
[ $RETVAL -eq 0 ] && rm -f ${lockfile} ${pidfile}
RETVAL=$?
echo
[ $RETVAL -eq 0 ] && rm -f ${lockfile} ${pidfile}
- for i in $( vps aux | grep nm.py | awk '{print $2}' ); do
- kill -9 $i
- done
-
}
restart()
{
stop
}
restart()
{
stop
- do_start $
{OPTIONS-"-d"}
+ do_start $
restartoptions
}
}