mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-08-02 16:07:42 +00:00
openntpd: add systemd unit file
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
parent
1126176be6
commit
35f37d7626
11
package/openntpd/ntpd.service
Normal file
11
package/openntpd/ntpd.service
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=OpenNTP Daemon
|
||||||
|
After=network.target
|
||||||
|
Conflicts=systemd-timesyncd.service
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=simple
|
||||||
|
ExecStart=/usr/sbin/ntpd -s -d
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
@ -9,6 +9,14 @@ OPENNTPD_SITE = http://ftp.openbsd.org/pub/OpenBSD/OpenNTPD
|
|||||||
OPENNTPD_LICENSE = MIT-like, BSD-2c, BSD-3c
|
OPENNTPD_LICENSE = MIT-like, BSD-2c, BSD-3c
|
||||||
OPENNTPD_LICENSE_FILES = COPYING
|
OPENNTPD_LICENSE_FILES = COPYING
|
||||||
|
|
||||||
|
define OPENNTPD_INSTALL_INIT_SYSTEMD
|
||||||
|
$(INSTALL) -D -m 0644 package/openntpd/ntpd.service \
|
||||||
|
$(TARGET_DIR)/etc/systemd/system/ntpd.service
|
||||||
|
mkdir -p $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants
|
||||||
|
ln -fs ../ntpd.service \
|
||||||
|
$(TARGET_DIR)/etc/systemd/system/multi-user.target.wants/ntpd.service
|
||||||
|
endef
|
||||||
|
|
||||||
define OPENNTPD_INSTALL_INIT_SYSV
|
define OPENNTPD_INSTALL_INIT_SYSV
|
||||||
$(INSTALL) -m 0755 -D package/openntpd/S49ntp \
|
$(INSTALL) -m 0755 -D package/openntpd/S49ntp \
|
||||||
$(TARGET_DIR)/etc/init.d/S49ntp
|
$(TARGET_DIR)/etc/init.d/S49ntp
|
||||||
|
Loading…
x
Reference in New Issue
Block a user