Re: Starting services after installing a package

2015-02-22 Thread Paul Wise
On Fri, Feb 20, 2015 at 10:44 PM, Jose Guerrero wrote: > @Paul: It is a new project for the institution I work for, the code is here: > https://github.com/joseguerrero/kit-servicios on the branch 'empaquetado'. Ah, if it isn't going to be uploaded to Debian you can do whatever you want, including

Re: Starting services after installing a package

2015-02-20 Thread Jose Guerrero
@Yuri: Thanks for the tip, it worked perfectly. @Paul: It is a new project for the institution I work for, the code is here: https://github.com/joseguerrero/kit-servicios on the branch 'empaquetado'. Originally I had not considered using a tool for configuration, because the app is meant to be us

Re: Starting services after installing a package

2015-02-19 Thread Paul Wise
On Fri, Feb 20, 2015 at 9:47 AM, Paul Wise wrote: > In general, there isn't any way to know how the sysadmin wants to > setup web apps so you need to ask them if they want to set up the app Some docs (probably outdated) you might want to look at: https://webapps-common.alioth.debian.org/draft/ht

Re: Starting services after installing a package

2015-02-19 Thread Paul Wise
On Fri, Feb 20, 2015 at 1:59 AM, Jose Guerrero wrote: > I am packaging a django app and I would like that after installing the > package, nginx and uwsgi services would start automatically. I am using > debuild to build the package and I have no idea where or how to specify the > services I want t

Re: Starting services after installing a package

2015-02-19 Thread Yurkao
You need to make your package be depend (predepend?) on uwsgi and Apache and trigger them on postinst 'configure' and prerm 'remove' Best regards, Yurii Oleynikov > 19 февр. 2015 г., в 19:59, Jose Guerrero написал(а): > > Hi everyone! > > I am packaging a django app and I would like that afte

Starting services after installing a package

2015-02-19 Thread Jose Guerrero
Hi everyone! I am packaging a django app and I would like that after installing the package, nginx and uwsgi services would start automatically. I am using debuild to build the package and I have no idea where or how to specify the services I want to start after the installation. I hope somebody