aboutsummaryrefslogtreecommitdiff
path: root/system/uptimed/rc.uptimed
diff options
context:
space:
mode:
Diffstat (limited to 'system/uptimed/rc.uptimed')
-rw-r--r--system/uptimed/rc.uptimed56
1 files changed, 28 insertions, 28 deletions
diff --git a/system/uptimed/rc.uptimed b/system/uptimed/rc.uptimed
index b27a36b342046..7425a88ed035a 100644
--- a/system/uptimed/rc.uptimed
+++ b/system/uptimed/rc.uptimed
@@ -9,51 +9,51 @@ PIDFILE="/var/run/uptimed"
START="$UPTIMED"
if [ -e $PIDFILE ]; then
- STOP="kill $( cat $PIDFILE )"
+ STOP="kill $( cat $PIDFILE )"
else
- STOP="killall $UPTIMED"
+ STOP="killall $UPTIMED"
fi
CREATEBOOTID="$UPTIMED -b"
start()
{
- echo -n $"Starting $NAME:"
- $START
- RETVAL=$?
- echo
+ echo -n $"Starting $NAME:"
+ $START
+ RETVAL=$?
+ echo
}
stop()
{
- echo -n $"Stopping $NAME:"
- $STOP
- RETVAL=$?
- echo
+ echo -n $"Stopping $NAME:"
+ $STOP
+ RETVAL=$?
+ echo
}
createbootid()
{
- $CREATEBOOTID
- RETVAL=$?
- $POST
+ $CREATEBOOTID
+ RETVAL=$?
+ $POST
}
case "$1" in
- start)
- start
+ start)
+ start
;;
- stop)
- stop
- ;;
- restart)
- stop
- start
- ;;
- createbootid)
- createbootid
- ;;
- *)
- echo $"Usage: $0 {start|stop|restart|createbootid}"
- RETVAL=1
+ stop)
+ stop
+ ;;
+ restart)
+ stop
+ start
+ ;;
+ createbootid)
+ createbootid
+ ;;
+ *)
+ echo $"Usage: $0 {start|stop|restart|createbootid}"
+ RETVAL=1
esac
exit $RETVAL