[Pkg-systemd-maintainers] initscripts: invoke-rc.d should strip .sh suffix from name when invoking systemctl

Michael Stapelberg stapelberg at debian.org
Sat Dec 21 09:02:05 GMT 2013


Hi Matthias,

Matthias Liertzer <matthias at liertzer.at> writes:
> I stumbled upon the same bug as the original bug reporter. Systemd drops
> the .sh suffix from init scripts in /etc/init.d when translating sysv
> script filenames in /etc/init.d to a corresponding systemd .service name
> (see:
> http://sources.debian.net/src/systemd/204-5/src/core/service.c?hl=337#L337)
>
> Hence, invoke-rc.d should strip the .sh suffix as well, if present,
> before invoking systemctl.
>
> A patch for invoke-rc.d is attached.
Thanks! The patch looks good to me.

-- 
Best regards,
Michael




More information about the Pkg-systemd-maintainers mailing list