From 1aa3bc74170f10a4285827efa2748d1d6c2e4613 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Fri, 23 Jan 2026 06:49:25 +0000 Subject: New example batch of service definitions --- examples/source/init-clock/up | 42 ------------------------------------------ 1 file changed, 42 deletions(-) delete mode 100644 examples/source/init-clock/up (limited to 'examples/source/init-clock/up') diff --git a/examples/source/init-clock/up b/examples/source/init-clock/up deleted file mode 100644 index a548ab5..0000000 --- a/examples/source/init-clock/up +++ /dev/null @@ -1,42 +0,0 @@ -#!/command/execlineb -P - -# Get the IP addresses for some NTP servers. -# Limit the DNS queries to 30 seconds: if the DNS is slower than -# that, chances are the server isn't good for us anyway. -# All the queries are parallelized, so it's fast. - -pipeline -{ - s6-setuidgid nobody - forx -p I { 0 1 2 } - importas -u I I - redirfd -w 2 /dev/null - s6-dnsip4 -t 30000 -- ${I}.fr.pool.ntp.org -} - - -# Ask for a NTP exchange with the servers we get. Accept anything. -# If the exchange can't be completed in 5 seconds, kill it. -# All the queries are parallelized. - -pipeline -{ - s6-setuidgid ntp - forstdin -p -d"\n" NTPSERVERIP - importas -u NTPSERVERIP NTPSERVERIP - redirfd -w 2 /dev/null - s6-sntpclock -f -T 5000 ${NTPSERVERIP} -} - - -# Take the first answer we get. - -pipeline -{ - s6-setuidgid nobody - s6-head -Sc 12 -} - -# Update the system clock. Accept anything. - -s6-clockadd -f -- cgit v1.3.1