SystemD - F-16
fedoradch at gmail.com
Sun Nov 13 05:00:13 UTC 2011
On Fri, 11 Nov 2011 19:27:34 -0700
"T.C. Hollingsworth" <tchollingsworth at gmail.com> wrote:
> On Fri, Nov 11, 2011 at 6:07 PM, Fedora User <fedoradch at gmail.com>
> > I've been doing this since RH 7.3. I'm an old fart and I don't do
> > change well. There are 49 SystemD man pages. Each one is more
> > esoteric than the Talmud. Seriously. "Chkconfig" made perfect sense
> > to me. I just need one example to figure it all out.
> > If I want squid to start in L-5 but not L-3. What do I do?
> systemd replaces numerical runlevels with named "targets". Apart from
> that, it works very similar to how chkconfig works under the hood.
> "chkconfig --level 3 squid off" essentially just does "rm
> /etc/rc3.d/squid". "chkconfig --level 5 squid on" just translates to
> "ln -sf /etc/init.d/squid /etc/rc5.d/". The systemd way is very
> rm -f /etc/systemd/system/multi-user.target.wants/squid.service
> ln -sf /lib/systemd/system/squid.service
> systemctl daemon-reload
> The "graphical" target is the equivalent of runlevel 5 in sysvinit,
> and it starts a display manager, while the "multi-user" target is the
> equivalent of runlevel 3, bringing you to a tty. So, the above
> commands first disables squid in multi-user.target, and the second
> enables squid in graphical.target. The final command informs systemd
> of the change.
Thanks. That gives me enough to sort it out. The system does seem to
boot faster but this is really arcane compared to sysV which seemed
very straightforward. Could be just old dog - new trick.
More information about the users