[15:53] Hi all [15:54] I was wondering if there is any way in upstart to reload a job description from file [16:02] yes [16:02] just change the file [16:02] Upstart will automatically reload it [16:02] if the job is running, you will need to stop it - let it stop, and then start it again [16:11] ok, this works if inotify works, but I have a read-only filesystem and would like to use links for some job files placed in a writable location [16:12] so if I change the target file of the symlink, inotify is not aware of it [16:12] right [16:14] do you think it would be possible to add an event to force reload, something like 'initctl emit reload myjob' [16:14] ? [16:15] it'll be present in trunk [16:16] everything necessary to do it is there [16:16] probably just a general "reload" command though to reload all jobs [16:16] great! [16:22] Keybuk: can Upstart start Upstart? ;-) [16:22] jdong: yes [16:24] jdong: kill -TERM 1 [16:24] * jdong doesn't dare figure out what that actually does :D [16:25] it makes upstart re-exec itself [16:25] cool [16:25] you have to get the running upstart to do it so that the new copy still has pid 1 [16:25] upstart --replace isn't possible [16:26] ah [18:29] Keybuk: is that job reloading something that was recently fixed? [18:30] in 0.3.8 it doesn't seem to ever reload the job description [18:30] at least, in my environment [18:31] it should [18:31] 0.3.8 is largely the same as 0.3.9 [19:30] oh, is it using inotify to see that the file changed? [19:31] that could be my problem, since the /etc filesystem is on nfs and i don't change the files on the host running upstart [19:52] it does use inotify, yes [21:00] are upstart init scripts shutdown and started up upon suspend and resume? [21:01] in ubuntu? [21:23] tannewt: no [21:24] mbiebl: so I should not write them as upstart init files but legacy init? [21:24] tannewt: why should they? suspend/resume != start/shutdown [21:25] mbiebl: true, but my daemon needs to be restarted on resume [21:25] tannewt: hook that up with pm-utils [21:26] mbiebl: hmm, okay, I was looking in /etc/acpi/{suspend,resume}.d. are those scripts different than regular init? [21:27] yes [21:28] ok, so I'd write inits for that and upstart for startup/shutdown? [21:28] they serve a different purpose [21:28] You could set up pm-utils to emit shutdown / resume events [21:29] Then your upstart job can react on this. [21:29] Or, if your daemon is started via a legacy sysv init script, create a hook for pm-utils and use the restartservice method. [21:30] mbiebl: oh, all right, sweet that sounds good, thanks === keesj is now known as k-way