mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-06 05:47:13 +02:00
Use keyword -<sys> instead of no<sys> to disable services on given systems. On LXC, disable acpid, klogd, mdev-mount, mdev and rdate. fixes #3699
19 lines
253 B
Plaintext
19 lines
253 B
Plaintext
#!/sbin/openrc-run
|
|
|
|
depend() {
|
|
need net
|
|
after firewall
|
|
keyword -vserver -lxc
|
|
}
|
|
|
|
start() {
|
|
if [ -z "$NTP_HOST" ] ; then
|
|
eerror "Please set NTP_HOST in /etc/conf.d/rdate"
|
|
return 1
|
|
fi
|
|
ebegin "Running busybox rdate"
|
|
rdate "$NTP_HOST"
|
|
eend $?
|
|
}
|
|
|