PageRenderTime 4ms CodeModel.GetById 2ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/init.d/uptrack

http://github.com/brinkman83/bashrc
Shell | 40 lines | 23 code | 5 blank | 12 comment | 1 complexity | e2163ca5ab33ec8cbcdf4a8003261406 MD5 | raw file
 1#!/bin/sh
 2
 3### BEGIN INIT INFO
 4# Provides:          uptrack
 5# Required-Start:    $local_fs
 6# Required-Stop:
 7# Default-Start:     S
 8# Default-Stop:
 9# Short-Description: Applies Uptrack updates at boot-time.
10# Description:       Applies Uptrack updates at boot-time.
11# X-Start-Before:    $network
12### END INIT INFO
13
14UPTRACK="/usr/sbin/uptrack-upgrade"
15UPTRACK_ARGS="--init"
16
17[ -x "$UPTRACK" ] || exit 0
18
19# Define LSB log_* functions.
20. /lib/lsb/init-functions
21
22case "$1" in
23  start)
24	log_begin_msg "Applying Ksplice Uptrack updates..."
25	"$UPTRACK" $UPTRACK_ARGS
26	log_end_msg $?
27	;;
28  stop|restart|force-reload)
29	echo "Error: There is no Uptrack daemon to $1:"
30	echo "  You never need to invoke the Uptrack init script manually."
31	echo "  This init script is only used to reinstall the Ksplice updates that were"
32	echo "  installed prior to the machine shutting down during the boot process."
33	exit 1
34	;;
35  *)
36    echo "Usage: /etc/init.d/uptrack {start|stop|restart|force-reload}"
37    exit 1
38	;;
39esac
40exit 0