[19:14] <Xeta> Hi! Is it possible to make upstart-job start an application in the foreground? I want my process to be run on startup and be the first thing the user sees.
[19:16] <xnox> upstart view of "foreground" is quite different =) can you describe your application? is it graphical or terminal one?
[19:26] <Xeta> It is a fullscreen video + audio player
[19:26] <Xeta> But it might take some keyboard input as well
[19:30] <xnox> Xeta: if you are using saucy or later. I suggest for a default (non-root capable) user account to auto-login. And then you can auto-launch a graphical application on user-session login.
[19:31] <xnox> Xeta: the locations you can put the user-session upstart job is at ~/.config/upstart/, or more global locations (admin path /etc/xdg/upstart/, packaging path /usr/share/upstart/sessions/)
[19:31] <xnox> see http://upstart.ubuntu.com/cookbook/ for further details and manpages, man init and related manpages from there.
[19:35] <Xeta> Ok cool, thanks xnox ill check it out
[19:37] <Xeta> Or hm, I would actually like the app to be started as root and not require the user to login.
[19:37] <Xeta> We are making kinda like a media box (with the rpi) where the user shouldn't have to login and our app should be the only thing runing in the foreground
[19:38] <Xeta> How could i achieve this? :)
[19:42] <Xeta> Im my current config im more or less just doing "exec /myapp". And it is kinda working, the video ourput from my app is shown after startup, but so is the normal prompt to login as a user.
[19:43] <Xeta> So hm, maybe my question is: How do I hide the login-prompt after boot so that it just shows the video output from my application?
[22:31] <xnox> Xeta: you don't want your app to run as root, create a user account to run your app, password-less and set lightdm to autologin.
[22:31] <xnox> Xeta: and auto-start your app from there.
[22:32] <xnox> Xeta: or look at e.g. ubiquity, it start on starting lightdm, and if one "quits" ubiquity one is taken lightdm (normal or auto login)
[22:32] <xnox> but it takes care to drop priviliges.
[23:52] <SegFaultAX> Is it possible to make upstart play nice with processes that change pids when reloading themselves?
[23:52] <SegFaultAX> It's kinda sorta but not quite like a restart.