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

Matthias Liertzer matthias at liertzer.at
Thu Dec 19 21:24:15 GMT 2013


reassign 732341 initscripts
retitle 732341 initscripts: invoke-rc.d should strip .sh suffix from
name when invoking systemctl
tag 732341 patch
thanks

Hi,

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.

Best,
Matthias
-------------- next part --------------
A non-text attachment was scrubbed...
Name: invoke_rc_d_drop_sh_suffix_systemd.patch
Type: text/x-patch
Size: 2874 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-systemd-maintainers/attachments/20131219/42e310b3/attachment-0005.bin>


More information about the Pkg-systemd-maintainers mailing list