scron

simple cron daemon
git clone git://git.2f30.org/scron
Log | Files | Refs | README | LICENSE

commit ba623b8f20ecc899081be2e2a97de59c8e7f331e
parent cd1510860d469e99e8bfa199eba7cbbcc519f505
Author: Ari Malinen <ari.malinen@gmail.com>
Date:   Tue, 10 Jun 2014 20:54:12 +0300

added init script

Diffstat:
MMakefile | 13++++++-------
MREADME | 6++----
Ainit.d/dcron | 5+++++
3 files changed, 13 insertions(+), 11 deletions(-)

diff --git a/Makefile b/Makefile @@ -1,16 +1,15 @@ -CC=gcc -CFLAGS=-Wall -PREFIX=/usr -BINDIR=${PREFIX}/bin +CFLAGS=-O2 -Wall all: dcron install: dcron - mkdir -p ${DESTDIR}${BINDIR} - install -m 755 dcron ${DESTDIR}${BINDIR} + mkdir -p ${PREFIX}/bin + install -m 755 dcron ${PREFIX}/bin/ + install -m 755 init.d/dcron /etc/init.d/ uninstall: - rm -f ${DESTDIR}${BINDIR}/dcron + rm -f ${PREFIX}/dcron + rm /etc/init.d/dcron clean: rm dcron diff --git a/README b/README @@ -1,7 +1,5 @@ dcron - simple cron daemon -This tool is not ready for use! - info: Single daemon, single config file. Logs to stdout and syslog. @@ -11,5 +9,5 @@ dcron [-h = help] [-d = daemon] config: # min,hour,mday,mon,wday,command -* * * * * exec echo minute passed -30 * * * * exec echo its half past +10 6 * * * exec ionice -n 2 updatedb +20 6 * * * exec nice -n 10 mandb --quiet diff --git a/init.d/dcron b/init.d/dcron @@ -0,0 +1,5 @@ +#!/sbin/runscript + +command=/usr/bin/dcron +command_args=-d +name="dcron cron daemon"