From 3180d09ff42d6d7edf34535d4d8559226aae4a09 Mon Sep 17 00:00:00 2001 From: unman Date: Mon, 6 Feb 2017 00:08:33 +0000 Subject: [PATCH] Constrain cron and anacron in Ubuntu also --- Makefile | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Makefile b/Makefile index 9bc4ee0..0417d57 100644 --- a/Makefile +++ b/Makefile @@ -63,6 +63,15 @@ SYSTEM_DROPINS += tor.service tor@default.service 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 ifeq ($(shell lsb_release -is), Debian) # Don't have 'ntpd' in Debian