fun with ushare daemon
I run my ushare server manually because the rc script that comes with it is pretty messed up (don't parse all the options in the conf file correctly).
Anyhow the problem with the ushare binary is that it scans the directory of movies and music that you intend the share (to your xbox) when you start up the daemon.
If you later move more movie files into the directory you have to manually kill and restart the ushare server for them to be added to the list of files being shared.
I don't want to set up a cron to daily kill and restart the ushare binary because what if I'm watching a movie being shared when the cron kicks off. Plus I don't want to have to wait that long for the ushare server to see it.
So is there a way to say, "on directory touch" restart this binary? I only want it to reindex when new files are added.
I'm running Ubuntu. Can I do this with Ubuntu's upstart?