Re: SystemD - F-16

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Nov 11, 2011 at 6:07 PM, Fedora User <fedoradch@xxxxxxxxx> wrote:
> 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
similar:

rm -f /etc/systemd/system/multi-user.target.wants/squid.service
ln -sf /lib/systemd/system/squid.service
/etc/systemd/system/graphical.target.wants/
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.

-T.C.
-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines


[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux