freebsd-ports/net/openntpd/files/openntpd.in
Christian Weisgerber 4caf9ea5ac Use plain "pgrep" in rc script to accommodate different path in DragonFly.
Reported by: Juan Francisco Cantero Hurtado <iam@juanfra.info>

Update to 5.7p4.  No user-visible changes.

In particular, the new HTTPS contraint feature is *not* enabled, because
* LibreSSL fails with the certificiate bundle from ca_root_nss
* USE_OPENSSL does not handle LibreSSL yet
2015-04-27 13:58:14 +00:00

33 lines
545 B
Bash

#!/bin/sh
#
# $FreeBSD$
#
# PROVIDE: openntpd
# REQUIRE: DAEMON ntpdate
# BEFORE: LOGIN
# KEYWORD: nojail shutdown
#
# Add the following lines to /etc/rc.conf.local or /etc/rc.conf
# to enable this service:
#
# openntpd_enable (bool): Set to NO by default.
# Set it to YES to enable openntpd.
. /etc/rc.subr
check_process()
{
pgrep -f 'ntpd: \[priv\]'
}
name=openntpd
rcvar=openntpd_enable
command=%%PREFIX%%/sbin/ntpd
required_files=%%PREFIX%%/etc/ntpd.conf
load_rc_config $name
: ${openntpd_enable="NO"}
run_rc_command "$1"