Native upstart scripts

2010-05-04 Thread Jacek Konieczny
Hello, In PLD Th, we have upstart as the /sbin/init daemon for some time, but it is only used to start the old 'SysVinit' scripts from /etc/rc.d/init.d. To make full use of Upstart features, like process supervising, parallel start, etc. we should find a way to include Upstart support in our

Re: Native upstart scripts

2010-05-04 Thread Caleb Maclennan
2010/5/4 Jacek Konieczny jaj...@jajcus.net: I think Upstart support should be implemented as an option, coexisting with current solution, so the administrator may choose what he prefers and even use init.d for some services and upstart for other. +1  - chkconfig would link/unlink the files

Re: Native upstart scripts

2010-05-04 Thread Elan Ruusamäe
On Tuesday 04 May 2010 12:17:41 Jacek Konieczny wrote: What do you think? Should I try to prepare a proof-of-concept implementation? i describe ubuntu like implementation that i had in first mind to do: 1. some packages have been migrated to upstart, having /etc/init/service.conf file 2.

Re: Native upstart scripts

2010-05-04 Thread Jacek Konieczny
On Tue, May 04, 2010 at 12:04:39PM +0200, Patryk Zawadzki wrote: I think Upstart support should be implemented as an option, coexisting with current solution, so the administrator may choose what he prefers and even use init.d for some services and upstart for other. I was hoping for

Re: Native upstart scripts

2010-05-04 Thread Jacek Konieczny
On Tue, May 04, 2010 at 12:04:39PM +0200, Patryk Zawadzki wrote: - scripts in /etc/rc.d/init.d would emit 'started' and 'stopped'  events when necessary, so upstart services can rely on that I'd opt for having 2 separate -init subpackages, one with the current rc.d contents and one with an

Re: Native upstart scripts

2010-05-04 Thread Pawel Golaszewski
On Tue, 4 May 2010, Patryk Zawadzki wrote: I think Upstart support should be implemented as an option, coexisting with current solution, so the administrator may choose what he prefers and even use init.d for some services and upstart for other. I was hoping for eventually dropping rc

Re: Native upstart scripts

2010-05-04 Thread Pawel Golaszewski
On Tue, 4 May 2010, Jacek Konieczny wrote: Maybe we could make /etc/init.d a directory with symlinks to /etc/rc.d/init.d or the upstart wrapper, depending on what is used to handle the service? see how ubuntu made this. Every service is in that directory, some are links. I can see how does

Re: Native upstart scripts

2010-05-04 Thread Elan Ruusamäe
On Tuesday 04 May 2010 12:17:41 Jacek Konieczny wrote: My proposition: - packages will provide upstart configuration files in /etc/rc.d/upstart - those could be linked or copied to /etc/init/subsys when needed   - chkconfig would link/unlink the files when requested (global     configuration

Re: Native upstart scripts

2010-05-04 Thread Jacek Konieczny
On Tue, May 04, 2010 at 07:40:43PM +0300, Elan Ruusamäe wrote: On Tuesday 04 May 2010 12:17:41 Jacek Konieczny wrote: My proposition: - packages will provide upstart configuration files in /etc/rc.d/upstart - those could be linked or copied to /etc/init/subsys when needed   - chkconfig