[Pkg-systemd-maintainers] Bug#709780: Bug#709780: Bug#709780: Bug#709780: Bug#709780: Provide a way to not start a daemon on boot

Michael Biebl biebl at debian.org
Sat Aug 10 12:29:24 BST 2013


Am 09.08.2013 20:30, schrieb Michael Stapelberg:
> Hi Michael,
> 
> Michael Biebl <biebl at debian.org> writes:
>> We should probably add test cases for these different use cases, i.e.
>> - SysV-only services
>> - systemd-only services
>> - services with both SysV and native service files
> That would be good, but it’s not a priority for me currently. The test
> matrix is simple enough that manual testing is doable.
> 
> I pushed a fix to debian-experimental.

I've tested the latest git master (a9589a2) and I still noticed a few issues

a/ For a service with sysv + native service, where the service is
masked, we still run the update-rc.d call but then fail when trying to
modify the native service:

root at pluto:/etc# systemctl mask kbd.service
ln -s '/dev/null' '/etc/systemd/system/kbd.service'

root at pluto:/etc# systemctl disable kbd.service
Synchronizing state for kbd.service with sysvinit using update-rc.d...
Executing /usr/sbin/update-rc.d kbd disable
insserv: warning: current start runlevel(s) (empty) of script `kbd'
overrides LSB defaults (S).
insserv: warning: current stop runlevel(s) (S) of script `kbd' overrides
LSB defaults (empty).
Failed to issue method call: No such file or directory

root at pluto:/etc# echo $?
1

root at pluto:/etc# ll /etc/rc?.d/???kbd
lrwxrwxrwx 1 root root 13 Aug 10 13:20 /etc/rcS.d/K19kbd -> ../init.d/kbd



b/ the systemctl disable output is incomplete, example rsyslog
without the patch:

root at pluto:/etc# systemctl enable rsyslog.service
ln -s '/lib/systemd/system/rsyslog.service'
'/etc/systemd/system/syslog.service'
ln -s '/lib/systemd/system/rsyslog.service'
'/etc/systemd/system/multi-user.target.wants/rsyslog.service'

with the patch:
root at pluto:/etc# systemctl enable rsyslog.service
Synchronizing state for rsyslog.service with sysvinit using update-rc.d...
Executing /usr/sbin/update-rc.d rsyslog enable
ln -s '/lib/systemd/system/rsyslog.service'
'/etc/systemd/system/syslog.service'


Notice, how
"ln -s '/lib/systemd/system/rsyslog.service'
'/etc/systemd/system/multi-user.target.wants/rsyslog.service'"
is missing in the second output. It seems to create that symlink, just
misses to output that information.



-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 901 bytes
Desc: OpenPGP digital signature
URL: <http://alioth-lists.debian.net/pipermail/pkg-systemd-maintainers/attachments/20130810/548a205f/attachment-0002.sig>


More information about the Pkg-systemd-maintainers mailing list