Re: automatic starting of services



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


Relevant Pages

  • Re: Fedora disimprovements: am I alone?
    ... command expressed in chkconfig terms? ... for each one to initiate before going to the next... ... improvement - it could perfecly well have been taken up by chkconfig, ... none of the systemctl advocates has answered my query: ...
    (Fedora)
  • Re: Fedora disimprovements: am I alone?
    ... See system logs and 'systemctl status openvpn.service' ... I don't know any SIMPLE way to enable openvpn. ... (I would not be likely to make an error with "chkconfig openvpn on".) ... come on tell as the syntax to enable two openvpn instances ...
    (Fedora)
  • [opensuse] chkconfig and systemctl
    ... using chkconfig and got the following error message. ... insserv: Forward service request to systemctl returned error status: 256 ... (Please note that I have started the server manually using systemctl, ... the imap server is started automatically without me having to ...
    (SuSE)
  • Re: systemctl command that is the same as chkconfig --level
    ... systemctl enable.service ... The service itself knows what system state it should be running ... in its LSB header section. ... message that systemctl's handing over to chkconfig - I've forgotten ...
    (Fedora)