File: reniced.init

package info (click to toggle)
reniced 1.21-1
  • links: PTS
  • area: main
  • in suites: bullseye, buster, stretch
  • size: 128 kB
  • ctags: 16
  • sloc: perl: 237; sh: 33; makefile: 2
file content (52 lines) | stat: -rw-r--r-- 1,016 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#! /bin/sh

### BEGIN INIT INFO
# Provides:          reniced
# Required-Start:    $all
# Required-Stop:     $remote_fs
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Short-Description: renices running processes
# Description:       reniced takes a list of regular expressions,
#                    looks for processes matching them
#                    and renices the processes to given values.
### END INIT INFO

PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
PROG=/usr/bin/reniced
NAME=reniced
DESC=reniced

test -x $PROG || exit 0

. /lib/lsb/init-functions

set -e

case "$1" in
  start)
	echo -n "Starting $DESC: "
	$PROG
	echo "$NAME."
	;;
  stop)
	echo -n "Stopping $DESC: "
	echo -n "(not supported, no effect) "
	echo "$NAME."
	;;
  status)
	echo -n "No status information for $DESC."
	;;
  restart|force-reload)
	echo -n "Restarting $DESC: "
	$PROG
	echo "$NAME."
	;;
  *)
	N=/etc/init.d/$NAME
	echo "Usage: $N {start|stop|restart|force-reload}" >&2
	exit 1
	;;
esac

exit 0