Re: ntp

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

 



On 01/24/2013 06:46 PM, Jan Litwiński wrote:
I have proglem with ntp service, I did:

systemctl enable ntpd.service
systemctl start ntpd.service

but ntp don't start at boot, starting by hand works. As a solution I
created rc.local and add to it systemctl start ntpd.service and it works. I
think ntpd starts before NetworkManager, My question is what is correct
solution ?

TIA

Hey Jan,

I don't know if F18 has changed the way services start but if there is an /etc/rc.d directory full of:

drwxr-xr-x. 2 root root  4096 Jan 12 21:00 init.d
-rwxr-xr-x. 1 root root  2617 Sep 17 05:54 rc
drwxr-xr-x. 2 root root  4096 Jan 12 21:01 rc0.d
drwxr-xr-x. 2 root root  4096 Jan 12 21:01 rc1.d
drwxr-xr-x. 2 root root  4096 Jan 12 21:01 rc2.d
drwxr-xr-x. 2 root root  4096 Jan 12 21:01 rc3.d
drwxr-xr-x. 2 root root  4096 Jan 12 21:01 rc4.d
drwxr-xr-x. 2 root root  4096 Jan 24 01:04 rc5.d
drwxr-xr-x. 2 root root  4096 Jan 12 21:01 rc6.d
-rwxr-xr-x. 1 root root   220 Sep 17 05:54 rc.local
-rwxr-xr-x. 1 root root 19370 Sep 17 05:54 rc.sysinit

you can set the order of service starts by setting sym-links in the appropriate run level directory.

/etc/rc.d/rc5.d
[mlapier@mushroom rc5.d]$ ll
lrwxrwxrwx. 1 root root 14 Jan  2  2012 S58ntpd -> ../init.d/ntpd
[mlapier@mushroom rc5.d]$

There are two link name formats.
Knn<Service>
Snn<Service>

K stands for kill, S stands for start.

The two digit number sets the order of action.

link ntpd with a number larger than all the network service setups. That should do it.

--
    _
   °v°
  /(_)\
   ^ ^  Mark LaPierre
Registerd Linux user No #267004
https://linuxcounter.net/
****
--
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