Commit Graph

13 Commits

Author SHA1 Message Date
David Coppit
502596a8da Switch to phusion's init and service run system 2017-05-14 23:23:17 -04:00
David Coppit
7ed3d92e8b New implementation using Python and "watchdog"
This version collects the events in a separate thread, and doesn't gobble up events. So hopefully it's more robust, in
addition to being easier to read.

One downside of using the "watchdog" module is that it only exposes file/dir modification events. So if I ever want to
keep track of opened files, I'll have to call inotifywait again.
2017-04-01 23:23:05 -04:00
David Coppit
934be98685 Add more logging
Also use a more cross-platform method for parsing times
2017-01-22 11:23:01 -05:00
David Coppit
51bb83d62f Display more information, including the path 2015-06-27 15:41:00 -04:00
David Coppit
99f51ecc05 Add support for DEBUG flag 2015-06-27 13:30:15 -04:00
David Coppit
dd981dc799 Add umask support 2015-06-26 01:08:53 -04:00
David Coppit
3888123dcd Generate the user and group names
Also check if the the user already exists.
2015-06-26 00:19:25 -04:00
David Coppit
44f8af4a50 Split up the mapping of IDs from "runas".
Also have config files specify their user/group IDs for the commands.
2015-06-25 23:41:40 -04:00
David Coppit
3391aacb8f Remove debugging code (oops) 2015-06-24 08:44:56 -04:00
David Coppit
5bdabd6ad7 Watch for changes recursively 2015-06-24 08:22:43 -04:00
David Coppit
e095a31553 Add IGNORE_EVENTS_WHILE_COMMAND_IS_RUNNING feature 2015-06-24 07:28:37 -04:00
David Coppit
06b0533ff0 Refactor code and trigger on more changes 2015-06-24 06:40:20 -04:00
David Coppit
5bebbfad91 Change the container to be a general inotify container. 2015-06-24 00:15:38 -04:00