[systemd-devel] How do I disable old init.d scripts?
Lennart Poettering
lennart at poettering.net
Wed Jun 27 02:14:50 PDT 2012
On Wed, 27.06.12 00:55, Paul Menzel (paulepanter at users.sourceforge.net) 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 he sake of curiosity, could you post the output of
"systemd-analyze plot" somewhere?
Lennart
--
Lennart Poettering - Red Hat, Inc.
More information about the systemd-devel
mailing list