Files
karasz 38a20c881e fluxplug: start the restructure of the project
In order to be more crontab friendly, fluxplug will be the only
executable called by cron in an every minute job, Something like

* * * * * /path/to/fluxplug >/dev/null 2>&1

Signed-off-by: Nagy Károly Gábriel <k@jpi.io>
2019-04-04 18:16:10 +03:00

10 lines
428 B
Bash

#!/bin/sh
set -o noclobber
me="chrony"
LINE=$($CHRONYWOPTS | "$AWK" -F"," -v myhost="$myhost" -v time=`date -u +%s%N` '{printf "chrony,host=%s,reference_id=%s,stratum=%si,leap_status=%s system_time=%s,last_offset=%s,rms_offset=%s,frequency=%s,residual_frequency=%s,skew=%s,root_delay=%s,root_dispersion=%s,update_interval=%s %s\n",myhost,$2,$3,$13,$4,$5,$6,$7,$8,$9,$10,$11,$12,time}')
write_line "$LINE" "$MAXLINES" "$me"