How to shutdown on app close
Liam Proven
lproven at gmail.com
Sun Jul 26 14:47:19 UTC 2009
2009/7/24 Chris Mohler <cr33dog at gmail.com>:
> On Fri, Jul 24, 2009 at 11:51 AM, Florian Diesch<diesch at spamfence.net> wrote:
>> Liam Proven <lproven at gmail.com> writes:
>>
>>> I'm setting up an Ubuntu box which will run a single full-screen app,
>>> all the time, and nothing else. I have set it up to automatically log
>>> in and then automatically start the app, but I am missing one step,
>>> the final one.
>>>
>>> When the user quits the app, I want the machine to shut down.
>>>
>>> Is there a straightforward way to accomplish this?
>>>
>>> All I could think of was that rather than run my app, I'd run a
>>> script, and the next line would say "shutdown now" or "telinit 0". The
>>> snag is, I think that requires root privileges & I don't want them to
>>> have to enter a password just to quit!
>>
>> See <https://help.ubuntu.com/community/Sudoers> for how to configure
>> sudo to not require a password.
>
> And also this page near the bottom for a kludge:
> http://ubuntuforums.org/archive/index.php/t-543392.html
>
> Not recommended for any multi-user setup, but in your case it might be OK...
>
> Chris
Thanks, that looks useful!
--
Liam Proven • Profile: http://www.linkedin.com/in/liamproven
Email: lproven at cix.co.uk • GMail/GoogleTalk/Orkut: lproven at gmail.com
Tel: +44 20-8685-0498 • Cell: +44 7939-087884 • Fax: + 44 870-9151419
AOL/AIM/iChat/Yahoo/Skype: liamproven • LiveJournal/Twitter: lproven
MSN: lproven at hotmail.com • ICQ: 73187508
More information about the ubuntu-users
mailing list