File: debianize-chronyd-restricted-unit-file.patch

package info (click to toggle)
chrony 4.8-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,780 kB
  • sloc: ansic: 38,349; sh: 5,876; yacc: 862; makefile: 231
file content (25 lines) | stat: -rw-r--r-- 834 bytes parent folder | download
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
Description: Debianize chronyd-restricted.service
Author: Vincent Blut <vincent.debian@free.fr>
Forwarded: not-needed
Last-Update: 2023-08-09
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
Index: chrony/examples/chronyd-restricted.service
===================================================================
--- chrony.orig/examples/chronyd-restricted.service
+++ chrony/examples/chronyd-restricted.service
@@ -14,11 +14,10 @@ ConditionCapability=CAP_SYS_TIME
 [Service]
 Type=notify
 PIDFile=/run/chrony/chronyd.pid
-Environment="OPTIONS="
-EnvironmentFile=-/etc/sysconfig/chronyd
-ExecStart=/usr/sbin/chronyd -n -U $OPTIONS
+EnvironmentFile=-/etc/default/chrony
+ExecStart=/usr/sbin/chronyd -n -U $DAEMON_OPTS
 
-User=chrony
+User=_chrony
 LogsDirectory=chrony
 LogsDirectoryMode=0750
 RuntimeDirectory=chrony