/srv/irclogs.ubuntu.com/2014/05/09/#upstart.txt

menacewhen i define a job like in http://pastebin.com/3ziQgxBT for shutdown (it works only for shutdown, which is intended), does this block, even if that script operation takes longer?15:09
menacein the t1.sh script i did atm only a touch, but i want to run a service over the fs...15:10
menaceand if that does not block, the thing will not be completed, since it will take some time...15:10
menaceor should i rather use a pre-start script?15:16
xnoxmenace: you have some time, but eventually after timeouts it will be killed.15:49
xnoxmenace: what is that command doing?15:50
menacescanning java libraries for viruses... stupid enterprise requirement >.<15:50
xnoxmenace: are you sure you can't do it earlier? this has potential to hold up files open on the filesystem, thus corrupting and requiring recovery on boot.15:50
xnoxmenace: if that is quick, than it should be fine. Otherwise, it's best to use cron to execute that. or user-session job instead, which can execute on logout for example.15:51
menaceif you can say a appropriate signal on upstart or dbus, which i could use? i have no idea which to use.. and upstart was rather easy to get15:52
menaceah, user-session job, okay, i'll try that15:52
menacea question: if my user-session-job is not complete, will the upstart system halt, until it is, or will it just shutdown?18:02
xnoxmenace: there is maximum delay, after which all processes are killed and system is shutdown.18:42
xnoxmenace: if you wish to inhibit shutdown, see dbus apis to notify about that.18:42
xnoxi'm not sure, but it's something in gnomish* fredesktopish* things.18:43
menacethis seems like a complex issue o_O18:53
menaceat least, because i want the script started, if the user triggered shutdown, i then want to stop it and scan the directory18:55
menacewell.. since my target platform does not have systemd/logind (which is the inhibit thingie)... is there a configuration possibility to extend the upstart maximum delay? *desperated*19:12
menacepreferably without recompiling upstart? <.<19:13

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!