Re: Fremantle initialisation scripts
> Does the stuff under /etc/X11/Xsession.(d|post) run as root or as user? > as user. cheers Daniel ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
Re: Fremantle initialisation scripts
On Wednesday 16 September 2009 07:48:51 Kimmo Hämäläinen wrote: > That's right. /etc/event.d is mostly for system services that are > started based on Upstart events, for stuff that should be started when > the user session starts, install a script under /etc/X11/Xsession.(d| > post). Does the stuff under /etc/X11/Xsession.(d|post) run as root or as user? Graham ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
Re: Fremantle initialisation scripts
On Tue, 2009-09-15 at 21:47 +0200, ext Graham Cobb wrote: > On Tuesday 15 September 2009 19:19:34 Graham Cobb wrote: > > How am I supposed to install an initialisation script in Fremantle? > > I have worked out the answer. > > > I heard that Fremantle includes upstart but I can't find any documentation > > on how to use it! Can someone point me to it? The documentation on > > upstart.ubuntu.com seems not to apply to the Maemo installation because > > there is no /etc/init directory. > > The upstart documentation on http://upstart.ubuntu.com/getting-started.html > is > OK except that the jobs directory seems to be called /etc/event.d. That's right. /etc/event.d is mostly for system services that are started based on Upstart events, for stuff that should be started when the user session starts, install a script under /etc/X11/Xsession.(d| post). -Kimmo > > I will add section to the http://wiki.maemo.org/Q&A_Porting_to_Fremantle Wiki > page. If anyone has more info or better recommendations for how to handle > this in packages, please udpate that page. > > Graham > ___ > maemo-developers mailing list > maemo-developers@maemo.org > https://lists.maemo.org/mailman/listinfo/maemo-developers ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
Re: Fremantle initialisation scripts
On Tuesday 15 September 2009 19:19:34 Graham Cobb wrote: > How am I supposed to install an initialisation script in Fremantle? I have worked out the answer. > I heard that Fremantle includes upstart but I can't find any documentation > on how to use it! Can someone point me to it? The documentation on > upstart.ubuntu.com seems not to apply to the Maemo installation because > there is no /etc/init directory. The upstart documentation on http://upstart.ubuntu.com/getting-started.html is OK except that the jobs directory seems to be called /etc/event.d. I will add section to the http://wiki.maemo.org/Q&A_Porting_to_Fremantle Wiki page. If anyone has more info or better recommendations for how to handle this in packages, please udpate that page. Graham ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
Fremantle initialisation scripts
How am I supposed to install an initialisation script in Fremantle? If I do it as normal, the init script gets installed into /etc/init.d and update-rc.d gets called and the symlinks are setup. However, the postinst includes a call to invoke-rc.d, which just exits without running the script and, worse, the init script is not run on the next reboot. I heard that Fremantle includes upstart but I can't find any documentation on how to use it! Can someone point me to it? The documentation on upstart.ubuntu.com seems not to apply to the Maemo installation because there is no /etc/init directory. Graham ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers