On 20 June 2013 16:32, Tollef Fog Heen <tfh...@err.no> 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. Above is a very basic sanity check. I haven't checked, but if above is implemented, the logic of checking "equivalent upstart job is available" should match the one already implemented in the update-rc.d / incoke-rc.d / service commands. So consider above more of a working proof of concept, rather than final code proposal. Regards, Dmitrijs. -- To UNSUBSCRIBE, email to debian-devel-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/CANBHLUgc0mNkGRej0w+ECmwrh-RfDw+eV=x=jrhdddox2bu...@mail.gmail.com