Lines 13-19
Link Here
|
13 |
# is because the user may have specified another key |
13 |
# is because the user may have specified another key |
14 |
# file, and we don't want to force the user to use that |
14 |
# file, and we don't want to force the user to use that |
15 |
# exact name for the key file. |
15 |
# exact name for the key file. |
16 |
if [[ ! -f ${CFGFILE} ]] ; then |
16 |
if [ ! -f "${CFGFILE}" ] ; then |
17 |
eerror "Please create ${CFGFILE} and the" |
17 |
eerror "Please create ${CFGFILE} and the" |
18 |
eerror "chrony key file (usually /etc/chrony/chrony.keys)" |
18 |
eerror "chrony key file (usually /etc/chrony/chrony.keys)" |
19 |
eerror "by using the" |
19 |
eerror "by using the" |
Lines 36-42
Link Here
|
36 |
start() { |
36 |
start() { |
37 |
checkconfig || return $? |
37 |
checkconfig || return $? |
38 |
|
38 |
|
39 |
[[ -n "${PIDFILE}" ]] || PIDFILE=/var/run/chronyd.pid |
39 |
[ -n "${PIDFILE}" ] || PIDFILE=/var/run/chronyd.pid |
40 |
|
40 |
|
41 |
ebegin "Starting chronyd" |
41 |
ebegin "Starting chronyd" |
42 |
start-stop-daemon --start --quiet \ |
42 |
start-stop-daemon --start --quiet \ |
Lines 49-55
Link Here
|
49 |
stop() { |
49 |
stop() { |
50 |
checkconfig || return $? |
50 |
checkconfig || return $? |
51 |
|
51 |
|
52 |
[[ -n "${PIDFILE}" ]] || PIDFILE=/var/run/chronyd.pid |
52 |
[ -n "${PIDFILE}" ] || PIDFILE=/var/run/chronyd.pid |
53 |
|
53 |
|
54 |
ebegin "Stopping chronyd" |
54 |
ebegin "Stopping chronyd" |
55 |
start-stop-daemon --stop --quiet \ |
55 |
start-stop-daemon --stop --quiet \ |