Re: automatic starting of services
- From: Ed Greshko <Ed.Greshko@xxxxxxxxxxx>
- Date: Tue, 10 Apr 2012 15:04:00 +0800
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
- References:
- automatic starting of services
- From: Tommy Pham
- Re: automatic starting of services
- From: Danishka Navin
- Re: automatic starting of services
- From: Tommy Pham
- Re: automatic starting of services
- From: Ed Greshko
- Re: automatic starting of services
- From: Tommy Pham
- automatic starting of services
- Prev by Date: Re: automatic starting of services
- Next by Date: Re: automatic starting of services
- Previous by thread: Re: automatic starting of services
- Next by thread: Re: automatic starting of services
- Index(es):
Relevant Pages
|