Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

inotifywait introduced with until.. sleep refactored to improve logging

  • Loading branch information...
commit ae1cc1dc73e16d0f341cd12b0585900efc0fa4cf 1 parent 74182b7
@kaihendry kaihendry authored
View
7 etc/webc/live-config.sh
@@ -134,10 +134,11 @@ update_cmdline() {
touch /etc/webc/cmdline
}
-until test -p $live_config_pipe # wait for xinitrc to trigger an update
+# wait for xinitrc to create pipe
+while read OUTPUT
do
- sleep 0.25 # wait for xinitrc to create pipe
-done
+ if echo $OUTPUT | grep -q "CREATE $(basename $live_config_pipe)"; then break; fi
+done < <(inotifywait -qm -e create $(dirname $live_config_pipe))
. "/etc/webc/webc.conf"
cmdline_has noconfig || update_cmdline
View
7 etc/webc/updates.sh
@@ -45,10 +45,11 @@ update_keys() {
gpg --refresh-keys --keyserver hkp://keys.gnupg.net &>/dev/null && touch /var/run/gpg-check
}
-until test -p $updates_pipe # wait for xinitrc to trigger an update
+# wait for xinitrc to create pipe
+while read OUTPUT
do
- sleep 0.25 # wait for xinitrc to create pipe
-done
+ if echo $OUTPUT | grep -q "CREATE $(basename $updates_pipe)"; then break; fi
+done < <(inotifywait -qm -e create $(dirname $updates_pipe))
# ensure $updates_url has latest $webc_id
. "/etc/webc/webc.conf"
View
BIN  usr/bin/inotifywait
Binary file not shown
View
BIN  usr/bin/inotifywatch
Binary file not shown
View
1  usr/lib/libinotifytools.so.0
View
BIN  usr/lib/libinotifytools.so.0.4.1
Binary file not shown
View
41 var/lib/dpkg/available
@@ -6367,6 +6367,27 @@ Description: X Window System (X.Org) infrastructure
terms are functionally interchangeable in an Debian system.
Multi-Arch: foreign
+Package: inotify-tools
+Priority: optional
+Section: misc
+Installed-Size: 96
+Maintainer: Ryan Niebur <ryan@debian.org>
+Architecture: i386
+Version: 3.13-3
+Depends: libc6 (>= 2.2), libinotifytools0 (>= 3.11)
+Size: 27124
+Description: command-line programs providing a simple interface to inotify
+ inotify-tools is a set of command-line programs for Linux providing a
+ simple interface to inotify. These programs can be used to monitor and
+ act upon filesystem events. inotify-tools consists of two utilities:
+ .
+ inotifywait simply blocks for inotify events, making it appropriate
+ for use in shell scripts.
+ .
+ inotifywatch collects filesystem usage statistics and outputs counts
+ of each inotify event.
+Homepage: http://inotify-tools.sourceforge.net/
+
Package: net-tools
Priority: important
Section: net
@@ -9641,6 +9662,26 @@ Description: small, friendly text editor inspired by Pico
- full internationalization support.
Homepage: http://www.nano-editor.org/
+Package: libinotifytools0
+Priority: optional
+Section: libs
+Installed-Size: 96
+Maintainer: Ryan Niebur <ryan@debian.org>
+Architecture: i386
+Source: inotify-tools
+Version: 3.13-3
+Replaces: inotify-tools (<< 3.10-2)
+Depends: libc6 (>= 2.4)
+Size: 21552
+Description: utility wrapper around inotify
+ Inotify is a Linux kernel feature enabling user space programs to
+ monitor parts of the filesystem in a efficient way. libinotifytools
+ is a thin layer on top of the kernel interface which makes it easy
+ to set up watches on many files at once, read events without having
+ to deal with low-level I/O, and several utility functions for inotify-
+ related string formatting
+Homepage: http://inotify-tools.sourceforge.net/
+
Package: live-config
Priority: optional
Section: misc
View
15 var/lib/dpkg/info/inotify-tools.list
@@ -0,0 +1,15 @@
+/.
+/usr
+/usr/bin
+/usr/bin/inotifywatch
+/usr/bin/inotifywait
+/usr/share
+/usr/share/man
+/usr/share/man/man1
+/usr/share/man/man1/inotifywait.1.gz
+/usr/share/man/man1/inotifywatch.1.gz
+/usr/share/doc
+/usr/share/doc/inotify-tools
+/usr/share/doc/inotify-tools/changelog.Debian.gz
+/usr/share/doc/inotify-tools/changelog.gz
+/usr/share/doc/inotify-tools/copyright
View
7 var/lib/dpkg/info/inotify-tools.md5sums
@@ -0,0 +1,7 @@
+f59b3b6886b6950c1ce4d741804070cf usr/bin/inotifywatch
+696bdda97c1f171854800bef3020b86d usr/bin/inotifywait
+bca597abe84e5bab3c3504bafcb38044 usr/share/man/man1/inotifywait.1.gz
+150155ddf881bb8409ba220071b0af07 usr/share/man/man1/inotifywatch.1.gz
+651dac47c714180faef5c8b38b77120f usr/share/doc/inotify-tools/changelog.Debian.gz
+bec072ad3036411a770e0500e110815e usr/share/doc/inotify-tools/changelog.gz
+21c5f73c830a2494dd752e5c4f5886ce usr/share/doc/inotify-tools/copyright
View
13 var/lib/dpkg/info/libinotifytools0.list
@@ -0,0 +1,13 @@
+/.
+/usr
+/usr/lib
+/usr/lib/libinotifytools.so.0.4.1
+/usr/share
+/usr/share/doc
+/usr/share/doc/libinotifytools0
+/usr/share/doc/libinotifytools0/changelog.Debian.gz
+/usr/share/doc/libinotifytools0/changelog.gz
+/usr/share/doc/libinotifytools0/copyright
+/usr/share/doc/libinotifytools0/README
+/usr/share/doc/libinotifytools0/NEWS.gz
+/usr/lib/libinotifytools.so.0
View
6 var/lib/dpkg/info/libinotifytools0.md5sums
@@ -0,0 +1,6 @@
+29fb0d578a7552d96daf75446a12dc0a usr/lib/libinotifytools.so.0.4.1
+651dac47c714180faef5c8b38b77120f usr/share/doc/libinotifytools0/changelog.Debian.gz
+bec072ad3036411a770e0500e110815e usr/share/doc/libinotifytools0/changelog.gz
+21c5f73c830a2494dd752e5c4f5886ce usr/share/doc/libinotifytools0/copyright
+b3f068e4ac2f1d5704b444d2baf70649 usr/share/doc/libinotifytools0/README
+8914d446335bfc22f720955daede4b52 usr/share/doc/libinotifytools0/NEWS.gz
View
7 var/lib/dpkg/info/libinotifytools0.postinst
@@ -0,0 +1,7 @@
+#!/bin/sh
+set -e
+# Automatically added by dh_makeshlibs
+if [ "$1" = "configure" ]; then
+ ldconfig
+fi
+# End automatically added section
View
7 var/lib/dpkg/info/libinotifytools0.postrm
@@ -0,0 +1,7 @@
+#!/bin/sh
+set -e
+# Automatically added by dh_makeshlibs
+if [ "$1" = "remove" ]; then
+ ldconfig
+fi
+# End automatically added section
View
1  var/lib/dpkg/info/libinotifytools0.shlibs
@@ -0,0 +1 @@
+libinotifytools 0 libinotifytools0
View
68 var/lib/dpkg/info/libinotifytools0.symbols
@@ -0,0 +1,68 @@
+libinotifytools.so.0 libinotifytools0 #MINVER#
+ _niceassert@Base 3.11
+ chrtostr@Base 3.11
+ cleanup_tree@Base 3.12
+ create_watch@Base 3.11
+ destroy_watch@Base 3.11
+ empty_stats@Base 3.11
+ event_compare@Base 3.11
+ filename_compare@Base 3.11
+ get_num@Base 3.11
+ inotifytools_cleanup@Base 3.12
+ inotifytools_error@Base 3.11
+ inotifytools_event_to_str@Base 3.11
+ inotifytools_event_to_str_sep@Base 3.11
+ inotifytools_filename_from_wd@Base 3.11
+ inotifytools_fprintf@Base 3.11
+ inotifytools_get_max_queued_events@Base 3.11
+ inotifytools_get_max_user_instances@Base 3.11
+ inotifytools_get_max_user_watches@Base 3.11
+ inotifytools_get_num_watches@Base 3.11
+ inotifytools_get_stat_by_filename@Base 3.11
+ inotifytools_get_stat_by_wd@Base 3.11
+ inotifytools_get_stat_total@Base 3.11
+ inotifytools_ignore_events_by_regex@Base 3.11
+ inotifytools_initialize@Base 3.11
+ inotifytools_initialize_stats@Base 3.11
+ inotifytools_next_event@Base 3.11
+ inotifytools_next_events@Base 3.11
+ inotifytools_printf@Base 3.11
+ inotifytools_remove_watch_by_filename@Base 3.11
+ inotifytools_remove_watch_by_wd@Base 3.11
+ inotifytools_replace_filename@Base 3.11
+ inotifytools_set_filename_by_filename@Base 3.11
+ inotifytools_set_filename_by_wd@Base 3.11
+ inotifytools_set_printf_timefmt@Base 3.11
+ inotifytools_snprintf@Base 3.11
+ inotifytools_sprintf@Base 3.11
+ inotifytools_str_to_event@Base 3.11
+ inotifytools_str_to_event_sep@Base 3.11
+ inotifytools_watch_file@Base 3.11
+ inotifytools_watch_files@Base 3.11
+ inotifytools_watch_recursively@Base 3.11
+ inotifytools_watch_recursively_with_exclude@Base 3.11
+ inotifytools_wd_from_filename@Base 3.11
+ inotifytools_wd_sorted_by_event@Base 3.11
+ isdir@Base 3.11
+ onestr_to_event@Base 3.11
+ rb_null@Base 3.11
+ rbcloselist@Base 3.11
+ rbdelete@Base 3.11
+ rbdestroy@Base 3.11
+ rbfind@Base 3.11
+ rbinit@Base 3.11
+ rblookup@Base 3.11
+ rbopenlist@Base 3.11
+ rbreadlist@Base 3.11
+ rbsearch@Base 3.11
+ rbwalk@Base 3.11
+ read_num_from_file@Base 3.11
+ record_stats@Base 3.11
+ remove_inotify_watch@Base 3.11
+ replace_filename@Base 3.11
+ stat_ptr@Base 3.11
+ tree_filename@Base 3.11
+ tree_wd@Base 3.11
+ watch_from_filename@Base 3.11
+ watch_from_wd@Base 3.11
+ wd_compare@Base 3.11
View
41 var/lib/dpkg/status
@@ -6752,6 +6752,27 @@ Description: X Window System (X.Org) infrastructure
terms are functionally interchangeable in an Debian system.
Multi-Arch: foreign
+Package: inotify-tools
+Status: install ok installed
+Priority: optional
+Section: misc
+Installed-Size: 96
+Maintainer: Ryan Niebur <ryan@debian.org>
+Architecture: i386
+Version: 3.13-3
+Depends: libc6 (>= 2.2), libinotifytools0 (>= 3.11)
+Description: command-line programs providing a simple interface to inotify
+ inotify-tools is a set of command-line programs for Linux providing a
+ simple interface to inotify. These programs can be used to monitor and
+ act upon filesystem events. inotify-tools consists of two utilities:
+ .
+ inotifywait simply blocks for inotify events, making it appropriate
+ for use in shell scripts.
+ .
+ inotifywatch collects filesystem usage statistics and outputs counts
+ of each inotify event.
+Homepage: http://inotify-tools.sourceforge.net/
+
Package: net-tools
Status: install ok installed
Priority: important
@@ -10226,6 +10247,26 @@ Description: small, friendly text editor inspired by Pico
- full internationalization support.
Homepage: http://www.nano-editor.org/
+Package: libinotifytools0
+Status: install ok installed
+Priority: optional
+Section: libs
+Installed-Size: 96
+Maintainer: Ryan Niebur <ryan@debian.org>
+Architecture: i386
+Source: inotify-tools
+Version: 3.13-3
+Replaces: inotify-tools (<< 3.10-2)
+Depends: libc6 (>= 2.4)
+Description: utility wrapper around inotify
+ Inotify is a Linux kernel feature enabling user space programs to
+ monitor parts of the filesystem in a efficient way. libinotifytools
+ is a thin layer on top of the kernel interface which makes it easy
+ to set up watches on many files at once, read events without having
+ to deal with low-level I/O, and several utility functions for inotify-
+ related string formatting
+Homepage: http://inotify-tools.sourceforge.net/
+
Package: live-config
Status: install ok installed
Priority: optional
Please sign in to comment.
Something went wrong with that request. Please try again.