[systemd-devel] systemd numbers for Debian Sid/unstable system (was: How do I disable old init.d scripts?)

Paul Menzel paulepanter at users.sourceforge.net
Wed Jun 27 03:18:02 PDT 2012


Am Mittwoch, den 27.06.2012, 11:14 +0200 schrieb Lennart Poettering:
> On Wed, 27.06.12 00:55, Paul Menzel wrote:
> 
> > Am Montag, den 25.06.2012, 15:31 +0200 schrieb Koen Kooi:
> > > Op 25 jun. 2012, om 15:25 heeft Paul Menzel het volgende geschreven:
> > 
> > > > how can I disable init.d scripts which systemd loads for compatibility
> > > > reasons?
> > > > 
> > > >        $ ls /etc/init.d/motd  (or any other init.d script)
> > > >        /etc/init.d/motd
> > > >        $ systemd-analyze blame | grep motd
> > > >           543ms motd.service
> > > >        $ sudo systemctl disable motd.service
> > > >        Failed to issue method call: No such file or directory
> > > 
> > > Try:
> > > 
> > > systemctl mask motd.service
> > 
> > That worked and userspace now takes less than three seconds on the
> > Debian Sid/unstable system.
> 
> You should be able to pull this down to < 1s with some love... ;-)
> 
> Just for the sake of curiosity, could you post the output of
> "systemd-analyze plot" somewhere?

I was hoping you will write that. Please find the files attached.

chrony and VDR still use the init.d scripts. For chrony I have not yet
come around to try the service files [1]. For VDR I started a thread on
vdr at linuxtv.org [2] (although this looks to be complicated thinking of
all the use cases).

Looking at the `systemd-analyze plot` output I would think PulseAudio
not depending on NetworkManager and GDM3 – maybe start in parallel to
NetworkManager and then wait for network connection – could start
earlier too.

And lastly the mainboard is an ASRock E350M1 (AMD Fusion E-350) and it
is a crucial m4 256 GB SSD [3]. I added the GDM3 service file and
disabled the init.d script motd. Everything else should be a standard
Debian Sid/unstable system.


Thanks,

Paul


[1] http://lists.freedesktop.org/archives/systemd-devel/2012-June/005596.html
[2] http://linuxtv.org/pipermail/vdr/2012-June/026487.html
[3] http://lists.freedesktop.org/archives/systemd-devel/2012-May/005181.html
-------------- next part --------------
UNIT FILE                              STATE   
proc-sys-fs-binfmt_misc.automount      static  
dev-hugepages.mount                    static  
dev-mqueue.mount                       static  
media.mount                            static  
proc-sys-fs-binfmt_misc.mount          static  
sys-fs-fuse-connections.mount          static  
sys-kernel-config.mount                static  
sys-kernel-debug.mount                 static  
sys-kernel-security.mount              static  
var-lock.mount                         static  
var-run.mount                          static  
systemd-ask-password-console.path      static  
systemd-ask-password-wall.path         static  
accounts-daemon.service                disabled
acpid.service                          static  
autovt at .service                        disabled
avahi-daemon.service                   disabled
bluetooth.service                      disabled
bootchart-done.service                 static  
bootchart.service                      disabled
bootlogd.service                       masked  
bootmisc.service                       masked  
checkfs.service                        masked  
checkroot-bootclean.service            masked  
checkroot.service                      static  
console-kit-daemon.service             disabled
console-kit-log-system-restart.service static  
console-kit-log-system-start.service   static  
console-kit-log-system-stop.service    static  
console-shell.service                  disabled
cryptdisks-early.service               masked  
cryptdisks.service                     masked  
dbus-org.freedesktop.hostname1.service static  
dbus-org.freedesktop.locale1.service   static  
dbus-org.freedesktop.login1.service    static  
dbus-org.freedesktop.timedate1.service static  
dbus.service                           static  
debian-fixup.service                   static  
emergency.service                      static  
fsck-root.service                      static  
fsck at .service                          static  
fuse.service                           masked  
gdm3.service                           enabled 
getty at .service                         enabled 
halt.service                           static  
hostname.service                       masked  
hwclock.service                        masked  
hwclockfirst.service                   masked  
ifup at .service                          static  
kexec.service                          static  
killprocs.service                      masked  
kmod.service                           static  
lm-sensors.service                     disabled
module-init-tools.service              static  
motd.service                           masked  
mountall-bootclean.service             masked  
mountall.service                       masked  
mountdevsubfs.service                  masked  
mountkernfs.service                    masked  
mountnfs-bootclean.service             masked  
mountnfs.service                       masked  
mtab.service                           masked  
NetworkManager-wait-online.service     disabled
NetworkManager.service                 disabled
polkitd.service                        static  
poweroff.service                       static  
procps.service                         static  
quotacheck.service                     static  
quotaon.service                        static  
reboot.service                         static  
remount-rootfs.service                 static  
rescue.service                         static  
rmnologin.service                      masked  
rsync.service                          disabled
rtkit-daemon.service                   disabled
serial-getty at .service                  static  
single.service                         masked  
stop-bootlogd-single.service           masked  
stop-bootlogd.service                  masked  
sudo.service                           disabled
systemd-ask-password-console.service   static  
systemd-ask-password-wall.service      static  
systemd-binfmt.service                 static  
systemd-hostnamed.service              static  
systemd-initctl.service                static  
systemd-journald.service               static  
systemd-localed.service                static  
systemd-logind.service                 static  
systemd-modules-load.service           static  
systemd-random-seed-load.service       static  
systemd-random-seed-save.service       static  
systemd-readahead-collect.service      disabled
systemd-readahead-done.service         static  
systemd-readahead-replay.service       disabled
systemd-remount-api-vfs.service        static  
systemd-shutdownd.service              static  
systemd-sysctl.service                 static  
systemd-timedated.service              static  
systemd-tmpfiles-clean.service         static  
systemd-tmpfiles-setup.service         static  
systemd-update-utmp-runlevel.service   static  
systemd-update-utmp-shutdown.service   static  
systemd-user-sessions.service          static  
systemd-vconsole-setup.service         static  
udev-mtab.service                      masked  
udev-settle.service                    disabled
udev-trigger.service                   static  
udev.service                           static  
udisks.service                         static  
upower.service                         disabled
urandom.service                        static  
user at .service                          static  
wpa_supplicant.service                 disabled
x11-common.service                     masked  
acpid.socket                           enabled 
avahi-daemon.socket                    disabled
dbus.socket                            static  
syslog.socket                          static  
systemd-initctl.socket                 static  
systemd-journald.socket                static  
systemd-shutdownd.socket               static  
udev-control.socket                    static  
udev-kernel.socket                     static  
basic.target                           static  
bluetooth.target                       static  
cryptsetup.target                      static  
ctrl-alt-del.target                    disabled
default.target                         disabled
emergency.target                       static  
final.target                           static  
getty.target                           static  
graphical.target                       disabled
halt.target                            disabled
http-daemon.target                     static  
kexec.target                           disabled
local-fs-pre.target                    static  
local-fs.target                        static  
mail-transfer-agent.target             static  
multi-user.target                      disabled
network.target                         static  
nss-lookup.target                      static  
poweroff.target                        disabled
printer.target                         static  
reboot.target                          disabled
remote-fs-pre.target                   static  
remote-fs.target                       enabled 
rescue.target                          disabled
rpcbind.target                         static  
runlevel0.target                       disabled
runlevel1.target                       disabled
runlevel2.target                       disabled
runlevel3.target                       disabled
runlevel4.target                       disabled
runlevel5.target                       disabled
runlevel6.target                       disabled
shutdown.target                        static  
sigpwr.target                          static  
smartcard.target                       static  
sockets.target                         static  
sound.target                           static  
swap.target                            static  
sysinit.target                         static  
syslog.target                          static  
time-sync.target                       static  
umount.target                          static  
bootchart-done.timer                   static  
systemd-readahead-done.timer           static  
systemd-tmpfiles-clean.timer           static  

168 unit files listed.
-------------- next part --------------
Startup finished in 3663ms (kernel) + 2936ms (userspace) = 6600ms
-------------- next part --------------
   712ms systemd-logind.service
   615ms console-kit-log-system-start.service
   580ms fglrx-atieventsd.service
   540ms chrony.service
   515ms rc.local.service
   509ms vdr.service
   487ms sysfsutils.service
   484ms ssh.service
   444ms cron.service
   444ms udev.service
   407ms systemd-user-sessions.service
   360ms media.mount
   359ms systemd-remount-api-vfs.service
   328ms network-manager.service
   328ms dev-mqueue.mount
   319ms udev-trigger.service
   319ms systemd-modules-load.service
   300ms sys-kernel-debug.mount
   288ms dev-hugepages.mount
   287ms systemd-sysctl.service
   256ms sys-kernel-security.mount
   239ms networking.service
   205ms gdm3.service
   195ms hdparm.service
   191ms console-setup.service
   191ms screen-cleanup.service
   167ms systemd-tmpfiles-setup.service
   147ms pulseaudio.service
    87ms polkitd.service
    79ms debian-fixup.service
    71ms keyboard-setup.service
    63ms remount-rootfs.service
    44ms console-kit-daemon.service
    40ms accounts-daemon.service
    29ms boot-efi.mount
    28ms upower.service
    25ms udisks.service
    18ms rtkit-daemon.service
-------------- next part --------------
A non-text attachment was scrubbed...
Name: systemd-analyze-plot.20120627-115710--start
Type: image/svg+xml
Size: 232405 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/systemd-devel/attachments/20120627/0eb9c38a/attachment-0001.svg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
URL: <http://lists.freedesktop.org/archives/systemd-devel/attachments/20120627/0eb9c38a/attachment-0001.pgp>


More information about the systemd-devel mailing list