[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

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



On 20 June 2013 16:32, Tollef Fog Heen <tfheen@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.


Reply to: