From 29525791d05ae6392319e92523d2d3127f885bc6 Mon Sep 17 00:00:00 2001 From: Jim Pryor Date: Mon, 2 May 2011 07:26:58 -0400 Subject: [PATCH] Added extra/crond.service for systemd Signed-off-by: Jim Pryor --- CHANGELOG | 2 ++ README | 4 ++++ extra/crond.service | 11 +++++++++++ 3 files changed, 17 insertions(+) create mode 100644 extra/crond.service diff --git a/CHANGELOG b/CHANGELOG index 0710c3b..9e33355 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -15,6 +15,8 @@ git * Continued portability improvements. Makefile now uses -lbsd-compat. Factored allocation and string calls to utils.c. + * Added extra/crond.service for systemd. Thanks to Miklos Vajna. + * Many internal changes and annotations to pass splint review. * Documentation and error message updates. diff --git a/README b/README index e33b1aa..fa33292 100644 --- a/README +++ b/README @@ -151,6 +151,10 @@ expects to source this file from /etc/conf.d/crond. run-cron : This simple shell script is a bare-bones alternative to Debian's run-parts. +crond.service +: This is an example sysvinit service to start and stop crond. It +could be placed in /lib/systemd/system in suitable systems. + root.crontab : This is an example crontab to install for the root user, or to install in /etc/cron.d. It runs any executable scripts located in the directories /etc/cron.hourly, diff --git a/extra/crond.service b/extra/crond.service new file mode 100644 index 0000000..0332390 --- /dev/null +++ b/extra/crond.service @@ -0,0 +1,11 @@ +[Unit] +Description=Cron Daemon +After=syslog.target + +[Service] +ExecStart=/usr/sbin/crond -S -l info +Type=forking + +[Install] +WantedBy=multi-user.target + -- 2.11.4.GIT