That's what it does with the servers in /etc/ntp/step-tickers
You do not need a driftfile.
If your driftfile makes problems, check if it has got the right permissions ntp:ntp
For example the pathname is /var/lib/ntp/ntp.drift
And initially this file should be empty, so the then started ntpd will write it after some hours according to its measurement.
A good debug command for the ntpd is
or
This User Gave Thanks to MadeInGermany For This Post:
For vertitas netbackup 6.0
I have media server :Solaris
Client server: Windows
I want to restart the netbackup service on the media server .
plz suggest ASAP. (1 Reply)
Hello, I am trying to write a script which will monitor few processes(winbind) for cpu utilization, If the process consumes more than say 99% cpu for 3 minutes, I want to run a script to restart the service which forks the process.
---------- Post updated at 11:21 AM ---------- Previous update... (5 Replies)
Hi All,
May i please know if it is possible to write a script to check the log messages and automatically restart a service if it is failed or it is stopped.
Appreciate your suggestions.
Thanks in advance.
regards,
Eajaz (2 Replies)
Hi All,
Requirement : I need to check for some services in my environment and restart the service if its not running.
I have written script to check the script if its running or not. While if its not running i need to restart it using ./start command. But it will ask for password prompt and i... (4 Replies)
Hey
Excuse me if this question is repeated everywhere but I am still new with scripting and I couldn't apply what I found to my case :confused::confused:
I am trying to run a rec process on a ssh client and at the same time play a file from my computer so i tried this
#!/bin/bash
echo... (3 Replies)
Hi,
Beside using crontab, what is other application we can set it? Normally I check using command crontab -l.
Any other path I need to check? Please guide me.
Thanks. (2 Replies)
Hello,
I'l like to create a script that restart a service (/etc/init.d/httpd restart) and also check if after restart the service is actually running. Sometimes it happen that at the first try the service fails to restart.
Thanks (2 Replies)
When I update the server with new SSL certificates, and restart httpd, I get errors :
# service httpd restart
Stopping httpd:
rm: cannot remove `/usr/local/apache2/bin/httpd/logs/httpd.pid': Not a directory
Starting httpd: ... (0 Replies)
I'm using a debian variant. My system clock already auto synchronizes. I'd like to have some sort of alert or log entry if the time is ever off by more than a particular amount. My first choice is to have a new file created on the desktop each day that there is a slip greater than the specified... (4 Replies)
Discussion started by: jutnobs
4 Replies
LEARN ABOUT POSIX
systemd-timesyncd.service
SYSTEMD-TIMESYNCD.SERVICE(8) systemd-timesyncd.service SYSTEMD-TIMESYNCD.SERVICE(8)NAME
systemd-timesyncd.service, systemd-timesyncd - Network Time Synchronization
SYNOPSIS
systemd-timesyncd.service
/lib/systemd/systemd-timesyncd
DESCRIPTION
systemd-timesyncd is a system service that may be used to synchronize the local system clock with a remote Network Time Protocol server. It
also saves the local time to disk every time the clock has been synchronized and uses this to possibly advance the system realtime clock on
subsequent reboots to ensure it monotonically advances even if the system lacks a battery-buffered RTC chip.
The systemd-timesyncd service specifically implements only SNTP. This minimalistic service will set the system clock for large offsets or
slowly adjust it for smaller deltas. More complex use cases are not covered by systemd-timesyncd.
The NTP servers contacted are determined from the global settings in timesyncd.conf(5), the per-link static settings in .network files, and
the per-link dynamic settings received over DHCP. See systemd.network(5) for more details.
timedatectl(1)'s set-ntp command may be used to enable and start, or disable and stop this service.
FILES
/var/lib/systemd/timesync/clock
This file contains the timestamp of the last successful synchronization.
SEE ALSO systemd(1), timesyncd.conf(5), systemd.network(5), systemd-networkd.service(8), timedatectl(1), localtime(5), hwclock(8)systemd 237SYSTEMD-TIMESYNCD.SERVICE(8)