Re: On upstart implementing Debian Policy §9.11.1 on behalf of sysv init scripts

2013-06-21 Thread Dmitrijs Ledkovs
On 21 June 2013 15:05, Chow Loong Jin wrote: > On Fri, Jun 21, 2013 at 11:52:40AM +0100, Dmitrijs Ledkovs wrote: >> On 21 June 2013 11:24, Chow Loong Jin wrote: >> > On Fri, Jun 21, 2013 at 10:34:54AM +0100, Dmitrijs Ledkovs wrote: >> >> On 20 June 2013 18:26, Russ Allbery wrote: >> >> > Dmitrij

Re: On upstart implementing Debian Policy §9.11.1 on behalf of sysv init scripts

2013-06-21 Thread Chow Loong Jin
On Fri, Jun 21, 2013 at 11:52:40AM +0100, Dmitrijs Ledkovs wrote: > On 21 June 2013 11:24, Chow Loong Jin wrote: > > On Fri, Jun 21, 2013 at 10:34:54AM +0100, Dmitrijs Ledkovs wrote: > >> On 20 June 2013 18:26, Russ Allbery wrote: > >> > Dmitrijs Ledkovs writes: > >> > > >> >> Thus in a bug repo

Re: On upstart implementing Debian Policy §9.11.1 on behalf of sysv init scripts

2013-06-21 Thread Dmitrijs Ledkovs
On 21 June 2013 11:24, Chow Loong Jin wrote: > On Fri, Jun 21, 2013 at 10:34:54AM +0100, Dmitrijs Ledkovs wrote: >> On 20 June 2013 18:26, Russ Allbery wrote: >> > Dmitrijs Ledkovs writes: >> > >> >> Thus in a bug report 712763 [4], included below, I instead propose >> >> instead shipping slight

Re: On upstart implementing Debian Policy §9.11.1 on behalf of sysv init scripts

2013-06-21 Thread Chow Loong Jin
On Fri, Jun 21, 2013 at 10:34:54AM +0100, Dmitrijs Ledkovs wrote: > On 20 June 2013 18:26, Russ Allbery wrote: > > Dmitrijs Ledkovs writes: > > > >> Thus in a bug report 712763 [4], included below, I instead propose > >> instead shipping slightly larger block of code in the upstart package > >> w

Re: On upstart implementing Debian Policy §9.11.1 on behalf of sysv init scripts

2013-06-21 Thread Dmitrijs Ledkovs
On 20 June 2013 18:26, Russ Allbery wrote: > Dmitrijs Ledkovs writes: > >> Thus in a bug report 712763 [4], included below, I instead propose >> instead shipping slightly larger block of code in the upstart package >> which is sourced by /lib/lsb/init-functions from init-functions.d >> directory.

Re: On upstart implementing Debian Policy §9.11.1 on behalf of sysv init scripts

2013-06-21 Thread Dmitrijs Ledkovs
On 20 June 2013 16:32, Tollef Fog Heen wrote: > ]] Dmitrijs Ledkovs > >> if init_is_upstart; then >> upstart_job=/etc/init/$(basename ${0:-}).conf >> if [ -f ${upstart_job:-} ] && [ ! -L ${upstart_job:-} ]; then > > Why the -L ? > ! -L = not a symlink, upstart jobs cannot be symlinks. Ab

Re: On upstart implementing Debian Policy §9.11.1 on behalf of sysv init scripts

2013-06-20 Thread Russ Allbery
Dmitrijs Ledkovs writes: > Thus in a bug report 712763 [4], included below, I instead propose > instead shipping slightly larger block of code in the upstart package > which is sourced by /lib/lsb/init-functions from init-functions.d > directory. Something along the lines of: > if init_is_upstar

Re: On upstart implementing Debian Policy §9.11.1 on behalf of sysv init scripts

2013-06-20 Thread Tollef Fog Heen
]] Dmitrijs Ledkovs > if init_is_upstart; then > upstart_job=/etc/init/$(basename ${0:-}).conf > if [ -f ${upstart_job:-} ] && [ ! -L ${upstart_job:-} ]; then Why the -L ? -- Tollef Fog Heen UNIX is user friendly, it's just picky about who its friends are -- To UNSUBSCRIBE, email to

On upstart implementing Debian Policy §9.11.1 on behalf of sysv init scripts

2013-06-20 Thread Dmitrijs Ledkovs
Debian policy was updated some time ago [1] to include provisions for supporting alternative init systems with a section specific to supporting upstart init system. [2] In essence update-rc.d / incoke-rc.d / service commands must be used, as they properly understand and can act upon init.d scripts

On upstart implementing Debian Policy §9.11.1 on behalf of sysv init scripts

2013-06-20 Thread Dmitrijs Ledkovs
Debian policy was updated some time ago [1] to include provisions for supporting alternative init systems with a section specific to supporting upstart init system. [2] In essence update-rc.d / incoke-rc.d / service commands must be used, as they properly understand and can act upon init.d scripts