You are not logged in.

#1 2013-05-29 02:27:44

IvoryVinyl
Member
From: Missouri
Registered: 2013-03-21
Posts: 3

Shutdown When a Program Closes?

Hello everyone,

I'm making a Netflix box using the Netflix Desktop Application and Archlinux ARM, and I was wondering how it would be possible to send a shutdown signal when a program closes.

Offline

#2 2013-05-29 02:33:10

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,183

Re: Shutdown When a Program Closes?

check for pid of the app and if unavailable, call shutdown


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

#3 2013-05-29 02:36:33

IvoryVinyl
Member
From: Missouri
Registered: 2013-03-21
Posts: 3

Re: Shutdown When a Program Closes?

Thanks. Should I write that as it's own or can I do that in xinit or something like that?

Offline

#4 2013-05-29 02:43:04

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,332
Website

Re: Shutdown When a Program Closes?

No need for the pid if you want the whole session to be for this.

xinitrc:

VBoxSDL --whatevertheflagsare WinXPNetflixBox
shutdown

Or just wherever you start x, `xinit && shutdown`

Last edited by Trilby (2013-05-29 02:43:36)


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#5 2013-05-29 02:46:14

IvoryVinyl
Member
From: Missouri
Registered: 2013-03-21
Posts: 3

Re: Shutdown When a Program Closes?

Awesome. Thanks.

Offline

Board footer

Powered by FluxBB