File: boot.inotify.init

package info (click to toggle)
beagle 0.2.12-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 12,204 kB
  • ctags: 16,188
  • sloc: cs: 91,628; sh: 27,627; ansic: 10,646; makefile: 2,248; xml: 15
file content (40 lines) | stat: -rw-r--r-- 687 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
#! /bin/sh
#
# /etc/init.d/boot.inotify
#
### BEGIN INIT INFO
# Provides:          boot.inotify
# Required-Start:
# Should-Start:
# Required-Stop:
# Default-Start:        B 2 3 5
# Default-Stop:
# Description:       sets the default inotify parameters
### END INIT INFO

. /etc/rc.status
rc_reset

case "$1" in
  start)
	echo -n "Setting inotify defaults "
	echo 16384 >/sys/class/misc/inotify/max_queued_events
	echo 128 >/sys/class/misc/inotify/max_user_devices
	echo 16384 >/sys/class/misc/inotify/max_user_watches
	true
	rc_status -v
	;;
    stop|restart)
	;;
    status)
	rc_failed 4
	rc_status -v
	;;
    *)
	echo "Usage: $0 {start|stop|status|restart}"
	exit 1
	;;
esac

rc_exit