Skip to content

XceptN’s Tech Stuff

All About Tech

How to Set/Check the Arguments Used with “ntpd” Service

Posted on March 31, 2009 By XceptN No Comments on How to Set/Check the Arguments Used with “ntpd” Service

On RHEL, OEL, CentOS and various other Linux distribution the Network Time Protocol (NTP) daemon can be run with various options. As the daemon is usually defined as a service where managed by:
  • /etc/init.d/ntpd <…>
  • service ntpd <…>

commands, it is better to use the configuration file

/etc/sysconfig/ntpd

to set the arguments. The file looks like:

# Drop root to id ‘ntp:ntp’ by default.
OPTIONS=”-x -u ntp:ntp -p /var/run/ntpd.pid”

# Set to ‘yes’ to sync hw clock after successful ntpdate
SYNC_HWCLOCK=no

# Additional options for ntpdate
NTPDATE_OPTIONS=””

Above you can see that the command line arguments are setup by the OPTIONS configuration variable.

You can check the settings from that /etc/sysconfig/ntpd file but it will not be reliable if the ntpd process is started manually for some reason. To check the arguments you can use command line:

ps -o args -p `cat /var/run/ntpd.pid`

and the output will look like:

# ps -o args -p `cat /var/run/ntpd.pid`
COMMAND
ntpd -x -u ntp:ntp -p /var/run/ntpd.pid
#

linux

Post navigation

Previous Post: How to Recursively “grep” a Subdirectory for a List of Files
Next Post: How to Distinguish Environment Variables from Different Shells in “bash”?

Related Posts

How to Distinguish Environment Variables from Different Shells in “bash”? linux
How to Recursively “grep” a Subdirectory for a List of Files desktop
HP QLogic Drivers development
A basic LVM Setup linux
Generating Patches for Linux Sources development
Giant Java Processes development

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Recent Posts

  • Dipping Toes into Nix Package Manager | Installing Freeplane
  • Fujitsu Workplace Protect Face Recognition Best Practices on Q704
  • Fujitsu STYLISTIC Q704 Fingerprint Scanner Problems
  • Two Generations of Computing Equipment…
  • IBM Model M Keyboard Goes Blank

Recent Comments

  1. r0cky on Fujitsu LIFEBOOK UH572 Ultrabook Touch Pad Review: Linux
  2. XceptN on Fujitsu LIFEBOOK UH572 Ultrabook Touch Pad Review: Linux
  3. r0cky on Fujitsu LIFEBOOK UH572 Ultrabook Touch Pad Review: Linux
  4. Kaylee on Mounting an LVM Logical Volume in an Oracle VM Disk Image
  5. Theron Conrey on Open Source Virtualization for Smaller Carbon Footprint

Archives

  • June 2024
  • November 2014
  • October 2014
  • April 2014
  • March 2014
  • December 2012
  • November 2012
  • October 2010
  • April 2010
  • April 2009
  • March 2009
  • February 2009
  • January 2009
  • December 2008
  • November 2008
  • October 2008
  • September 2008

Categories

  • blogging
  • communication
  • desktop
  • development
  • firmware
  • Fujitsu
  • gprs
  • gps
  • hardware
  • internet
  • java
  • kernel
  • keyboard
  • linux
  • masteryourbiz
  • mms
  • mobile
  • multimedia
  • network
  • OracleVM
  • palm
  • python
  • rokr e6
  • social media networking
  • storage
  • sysadm
  • tablet
  • twitter
  • virtualization
  • wap
  • windows
  • wordpress
  • xen

Copyright © 2025 XceptN’s Tech Stuff.

Powered by PressBook Masonry Dark