[Pkg-sysvinit-devel] Bug#826214: SysV init scripts using init-d-script are not properly redirected to systemctl according to codesearch.d.n
Ian Jackson
ijackson at chiark.greenend.org.uk
Wed Nov 16 16:15:25 UTC 2016
Martin writes:
> Correct:
>
> + set /etc/init.d/apache-htcacheclean start
> [...]
> + prog=apache-htcacheclean
> + service=apache-htcacheclean.service
>
> Thus $0 is okay (from the "set" in init-t-script)
Err, really ? I'm not sure this is right. I don't have the set -x
output that Martin is apparently working from in front of me, but
set /etc/init.d/apache-htcacheclean start
looks quite wrong. It would set $1 to
`/etc/init.d/apache-htcacheclean' and $2 to `start'.
But maybe I'm just confused. I can't find the `"set" in
init-t-script' Martin refers to. init-d-script has only one set and
it's a set -x.
My /lib/lsb/init-functions doesn't look like it would trash $1.
Ian.
--
Ian Jackson <ijackson at chiark.greenend.org.uk> These opinions are my own.
If I emailed you from an address @fyvzl.net or @evade.org.uk, that is
a private address which bypasses my fierce spamfilter.
More information about the Pkg-sysvinit-devel
mailing list