File: systemd-configure-ntpviz.patch

package info (click to toggle)
ntpsec 1.2.3%2Bdfsg1-8
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 10,960 kB
  • sloc: ansic: 62,004; python: 32,017; sh: 1,553; yacc: 1,293; makefile: 190; javascript: 138
file content (30 lines) | stat: -rw-r--r-- 1,080 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
Description: systemd: Configure ntpviz
 - Configure ntpviz to match the cron.d jobs
 - ntpd.service is called ntpsec.service in this package
Forwarded: not-needed
Author: Richard Laager <rlaager@debian.org>
Last-Update: 2019-09-23
--- a/etc/ntpviz-daily.service
+++ b/etc/ntpviz-daily.service
@@ -4,6 +4,7 @@
 Requisite=ntpsec.service
 
 [Service]
-Type=simple
+Type=oneshot
 IOSchedulingClass=idle
-ExecStart=@BINDIR@/ntpviz -w l -p 1 -o /var/www/localhost/htdocs/day
+ExecStart=@BINDIR@/ntpviz -p 1 -d /var/log/ntpsec -o /var/lib/ntpsec/ntpviz/day @/etc/ntpviz/options
+ExecStartPost=/usr/bin/find /var/lib/ntpsec/ntpviz/day -type f -mtime +1 -delete
--- a/etc/ntpviz-weekly.service
+++ b/etc/ntpviz-weekly.service
@@ -4,6 +4,7 @@
 Requisite=ntpsec.service
 
 [Service]
-Type=simple
+Type=oneshot
 IOSchedulingClass=idle
-ExecStart=@BINDIR@/ntpviz -w l -p 7 -o /var/www/localhost/htdocs/week
+ExecStart=@BINDIR@/ntpviz -p 7 -d /var/log/ntpsec -o /var/lib/ntpsec/ntpviz/week @/etc/ntpviz/options
+ExecStartPost=/usr/bin/find /var/lib/ntpsec/ntpviz/week -type f -mtime +7 -delete