aboutsummaryrefslogtreecommitdiff
path: root/system/uptimed/rc.uptimed
diff options
context:
space:
mode:
authorGraham Orange <gorange40@gmail.com>2015-11-05 00:28:30 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2015-11-05 00:44:58 +0700
commit4fecfb38f80b6b9ed817cc73f60f0b21b7048160 (patch)
treecb5cc8f2998364639f305679ef64667cd6b92ec0 /system/uptimed/rc.uptimed
parenta67738dd229da17acb8674fe8943c28fb33aa869 (diff)
system/uptimed: Updated for version 0.4.0.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
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 b27a36b34204..7425a88ed035 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