Constrain cron and anacron in Ubuntu also

This commit is contained in:
unman 2017-02-06 00:08:33 +00:00
parent a361fb454c
commit 3180d09ff4
No known key found for this signature in database
GPG Key ID: FDD1B8244731B36C

View File

@ -63,6 +63,15 @@ SYSTEM_DROPINS += tor.service tor@default.service
USER_DROPINS := pulseaudio.service pulseaudio.socket USER_DROPINS := pulseaudio.service pulseaudio.socket
# Ubuntu Dropins
ifeq ($(shell lsb_release -is), Ubuntu)
# 'crond.service' is named 'cron.service in Debian
SYSTEM_DROPINS := $(strip $(patsubst crond.service, cron.service, $(SYSTEM_DROPINS)))
SYSTEM_DROPINS += anacron.service
SYSTEM_DROPINS += anacron-resume.service
endif
# Debian Dropins # Debian Dropins
ifeq ($(shell lsb_release -is), Debian) ifeq ($(shell lsb_release -is), Debian)
# Don't have 'ntpd' in Debian # Don't have 'ntpd' in Debian