Installing upstart files in packages

Martin Grimme martin.grimme at gmail.com
Fri Dec 25 17:58:12 EET 2009


Hi,

my package n900-fmrx-enabler installs an upstart file.
I'm simply installing the upstart script into /etc/event.d and handle
the first startup in the postinst script.

You may want to check
https://garage.maemo.org/plugins/scmsvn/viewcvs.php/trunk/?root=fmrx-enabler

Please note that the syntax of upstart scripts is a lot different than
init.d scripts. But it's perfectly possible to keep the init.d script
and add an upstart script that just invokes the init.d script
properly.


Martin


2009/12/25, Tony Green <maemo at beermad.org.uk>:
> Apologies if this has been asked / answered before (I can't find an answer
> in the archives, but that may just mean I'm not searching right).
>
> What's the best way to get my upstart job definition files installed in the
> right place when a package is installed? The debian directory has an init.d
> file that gets put in the right place, but no obvious file for upstart
> files.
>
> Is there a mechanism that will put it where it needs to go, or do I need to
> write it from postinstall?
>
> I'd like to get this right, preferably first time...
>
> Thanks
> --
> Tony Green
> Ipswich, Suffolk, England
> www.beermad.org.uk/
> www.suffolkcamra.co.uk/pubs/
> My PGP public key: www.beermad.org.uk/cgi-bin/pgp.cgi
>
> * No Micro$oft products were used in the generation of this communication
> _______________________________________________
> maemo-developers mailing list
> maemo-developers at maemo.org
> https://lists.maemo.org/mailman/listinfo/maemo-developers
>


More information about the maemo-developers mailing list