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

Michael Stapelberg stapelberg at debian.org
Thu Aug 8 20:36:34 BST 2013


Hi Michael,

Michael Biebl <biebl at debian.org> writes:
> As discussed on IRC: What this patch does, is forward requests for
> LSB-only services to update-rc.d.
Nope, it forwards all requests to update-rc.d :). The log_info line said
otherwise, but I changed that in
http://anonscm.debian.org/gitweb/?p=pkg-systemd/systemd.git;a=commitdiff;h=124dbcd

Here is a log, proving that the right thing actually happens:

root at debian-sysv ~/deb-packages/systemd 2 $ systemctl status kbd.service
kbd.service - LSB: Prepare console
   Loaded: loaded (/etc/init.d/kbd)
   Active: active (exited) since Thu 2013-08-08 15:16:38 EDT; 13min ago

Aug 08 15:16:38 debian-sysv kbd[379]: Setting console screen modes.
root at debian-sysv ~/deb-packages/systemd 2 $ l /etc/rc*.d/*kbd
lrwxrwxrwx 1 root root 13 2013-08-08 15:30 /etc/rcS.d/S17kbd -> ../init.d/kbd
root at debian-sysv ~/deb-packages/systemd 2 $ systemctl disable kbd.service
kbd.service is not a native service, redirecting to /usr/sbin/update-rc.d.
Executing /usr/sbin/update-rc.d kbd remove
update-rc.d: using dependency based boot sequencing
root at debian-sysv ~/deb-packages/systemd 2 $ l /etc/rc*.d/*kbd            
ls: cannot access /etc/rc*.d/*kbd: No such file or directory
root at debian-sysv ~/deb-packages/systemd 2 $ systemctl enable kbd.service 
kbd.service is not a native service, redirecting to /usr/sbin/update-rc.d.
Executing /usr/sbin/update-rc.d kbd defaults
update-rc.d: using dependency based boot sequencing
update-rc.d: warning: default start runlevel arguments (2 3 4 5) do not match kbd Default-Start values (S)
update-rc.d: warning: default stop runlevel arguments (0 1 6) do not match kbd Default-Stop values (none)
root at debian-sysv ~/deb-packages/systemd 2 $ l /etc/rc*.d/*kbd           
lrwxrwxrwx 1 root root 13 2013-08-08 15:30 /etc/rcS.d/S17kbd -> ../init.d/kbd
root at debian-sysv ~/deb-packages/systemd 2 $ l /etc/rc*.d/*lighttpd  
lrwxrwxrwx 1 root root 18 2013-06-23 06:26 /etc/rc0.d/K01lighttpd -> ../init.d/lighttpd
lrwxrwxrwx 1 root root 18 2013-06-23 06:26 /etc/rc1.d/K01lighttpd -> ../init.d/lighttpd
lrwxrwxrwx 1 root root 18 2013-06-26 16:43 /etc/rc2.d/S17lighttpd -> ../init.d/lighttpd
lrwxrwxrwx 1 root root 18 2013-06-26 16:43 /etc/rc3.d/S17lighttpd -> ../init.d/lighttpd
lrwxrwxrwx 1 root root 18 2013-06-26 16:43 /etc/rc4.d/S17lighttpd -> ../init.d/lighttpd
lrwxrwxrwx 1 root root 18 2013-06-26 16:43 /etc/rc5.d/S17lighttpd -> ../init.d/lighttpd
lrwxrwxrwx 1 root root 18 2013-06-23 06:26 /etc/rc6.d/K01lighttpd -> ../init.d/lighttpd
root at debian-sysv ~/deb-packages/systemd 2 $ systemctl status lighttpd.service
lighttpd.service - Lighttpd Daemon
   Loaded: loaded (/lib/systemd/system/lighttpd.service; enabled)
   Active: active (running) since Thu 2013-08-08 15:16:46 EDT; 14min ago
 Main PID: 936 (lighttpd)
   CGroup: name=systemd:/system/lighttpd.service
           ā””ā”€936 /usr/sbin/lighttpd -D -f /etc/lighttpd/lighttpd.conf

Aug 08 15:16:46 debian-sysv lighttpd[553]: Syntax OK
root at debian-sysv ~/deb-packages/systemd 2 $ systemctl disable lighttpd.service
lighttpd.service is not a native service, redirecting to /usr/sbin/update-rc.d.
Executing /usr/sbin/update-rc.d lighttpd remove
update-rc.d: using dependency based boot sequencing
root at debian-sysv ~/deb-packages/systemd 2 $ l /etc/rc*.d/*lighttpd            
ls: cannot access /etc/rc*.d/*lighttpd: No such file or directory
root at debian-sysv ~/deb-packages/systemd 2 $ systemctl enable lighttpd.service 
lighttpd.service is not a native service, redirecting to /usr/sbin/update-rc.d.
Executing /usr/sbin/update-rc.d lighttpd defaults
update-rc.d: using dependency based boot sequencing
root at debian-sysv ~/deb-packages/systemd 2 $ l /etc/rc*.d/*lighttpd           
lrwxrwxrwx 1 root root 18 2013-08-08 15:30 /etc/rc0.d/K01lighttpd -> ../init.d/lighttpd
lrwxrwxrwx 1 root root 18 2013-08-08 15:30 /etc/rc1.d/K01lighttpd -> ../init.d/lighttpd
lrwxrwxrwx 1 root root 18 2013-08-08 15:30 /etc/rc2.d/S17lighttpd -> ../init.d/lighttpd
lrwxrwxrwx 1 root root 18 2013-08-08 15:30 /etc/rc3.d/S17lighttpd -> ../init.d/lighttpd
lrwxrwxrwx 1 root root 18 2013-08-08 15:30 /etc/rc4.d/S17lighttpd -> ../init.d/lighttpd
lrwxrwxrwx 1 root root 18 2013-08-08 15:30 /etc/rc5.d/S17lighttpd -> ../init.d/lighttpd
lrwxrwxrwx 1 root root 18 2013-08-08 15:30 /etc/rc6.d/K01lighttpd -> ../init.d/lighttpd

AFAICT, there is nothing we need to change. Please correct me if Iā€™m
wrong.

-- 
Best regards,
Michael




More information about the Pkg-systemd-maintainers mailing list