Merging from head
[beagle.git] / tools / boot.inotify.init
bloba7723cbba4e7121dc3ca240ba4fe45380b54a3f5
1 #! /bin/sh
3 # /etc/init.d/boot.inotify
5 ### BEGIN INIT INFO
6 # Provides: boot.inotify
7 # Required-Start:
8 # Should-Start:
9 # Required-Stop:
10 # Default-Start: B 2 3 5
11 # Default-Stop:
12 # Description: sets the default inotify parameters
13 ### END INIT INFO
15 . /etc/rc.status
16 rc_reset
18 case "$1" in
19 start)
20 echo -n "Setting inotify defaults "
21 echo 16384 >/sys/class/misc/inotify/max_queued_events
22 echo 128 >/sys/class/misc/inotify/max_user_devices
23 echo 16384 >/sys/class/misc/inotify/max_user_watches
24 true
25 rc_status -v
27 stop|restart)
29 status)
30 rc_failed 4
31 rc_status -v
34 echo "Usage: $0 {start|stop|status|restart}"
35 exit 1
37 esac
39 rc_exit