Re: automatic starting of services

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

 



On 04/10/2012 02:49 PM, Tommy Pham wrote:
> Thank you, Ed, for that excellent reading!  That explains a lot of
> things.  I'm only testing F17 to see what new features and
> enhancements I can look forward to.  I don't expect much stability and
> compatibility from non GA releases.  I do have additional questions :)

Not a surprise....  :-)

> 1) is network.target.wants equivalent to run level 2,
> multi-user.target.wants would be run level 3, and graphical is similar
> to run level 5 of chkconfig?  Thus, I need to put the service in the
> all the desired targets similar to turning on each run level of
> chkconfig, right?

Well, that isn't necessary......

If you installed mysql, for example, there will be a
/lib/systemd/system/mysqld.service file.  When mysql is installed it defaults to
being disabled, as shown in the output of the systemctl command below.

[egreshko@meimei system]$ systemctl status mysqld.service
mysqld.service - MySQL database server
          Loaded: loaded (/lib/systemd/system/mysqld.service; disabled)
          Active: inactive (dead)
          CGroup: name=systemd:/system/mysqld.service

To enable it on boot, just do

 systemctl enable mysqld.service

See....

http://fedoraproject.org/wiki/Systemd#What_is_the_tool_to_manage_services_with_systemd.3F

>
> 2) The wiki mention using .include but I didn't quite get that part.
> I was looking for a configuration of some kind to use but I ended up
> making a symlink like existing services in /etc/systemd/system.

No need to worry about all of that unless you are creating your own services.  i.e.
those not installed via rpm from fedora.

-- 
Never be afraid to laugh at yourself, after all, you could be missing out on the joke
of the century. -- Dame Edna Everage
-- 
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
Have a question? Ask away: http://ask.fedoraproject.org


[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