id,summary,reporter,owner,description,type,status,priority,milestone,component,resolution,keywords,cc,fix_version,see_also 309,Desync auto-update by editing /etc/cron.d/debathena-auto-update instead of sleeping,andersk,,"We’ve discovered that on recent Ubuntu, sleeping for extended periods inside a cron job can interfere with shutting down or restarting the machine through the GUI, because it claims that other users are logged in. This is not as important for -cluster but may be annoying to some -workstation users (or anyone else that decides to use our auto-updater). geofft found LP:284229, which is not related to anything except in that it mentions “The use of pam-ck-connector means that consolekit registers a session for every cron or ssh session started.” which partially explains the issue. We could background the job, but we would lose cron’s job management and error reporting. Furthermore, it is a nice feature that it warns you about shutting down or restarting while an update is running. So instead I think we should make the postinst edit a random hour-mod-2 and minute into /etc/cron.d/debathena-auto-update, and get rid of the sleep.",defect,closed,normal,Summer 2010 (Lucid Deploy),--,fixed,,,,