From 161ebc28041e8ecfca34fdef9a621764cc15e24c Mon Sep 17 00:00:00 2001 From: kolodko Date: Sat, 11 Sep 2004 15:18:41 +0000 Subject: [PATCH] - added Changed files: fcron.conf -> 1.1 fcron.crontab -> 1.1 fcron.init -> 1.1 fcron.pam -> 1.1 fcrontab.pam -> 1.1 --- fcron.conf | 23 +++++++++++++++++++ fcron.crontab | 10 +++++++++ fcron.init | 62 +++++++++++++++++++++++++++++++++++++++++++++++++++ fcron.pam | 11 +++++++++ fcrontab.pam | 18 +++++++++++++++ 5 files changed, 124 insertions(+) create mode 100644 fcron.conf create mode 100644 fcron.crontab create mode 100644 fcron.init create mode 100644 fcron.pam create mode 100644 fcrontab.pam diff --git a/fcron.conf b/fcron.conf new file mode 100644 index 0000000..6f92686 --- /dev/null +++ b/fcron.conf @@ -0,0 +1,23 @@ +# fcron.conf - Configuration file for fcron(8) and fcrontab(1). +# See fcron.conf(5) for syntax and explanations. +# +# WARNING : this file must be owned by root:fcron and 640. +# + +# The spool directory where fcron stores its files +fcrontabs = /var/spool/cron + +# The locations of the pid file and the fifo file +pidfile = /var/run/fcron.pid +fifofile = /var/run/fcron.fifo + +# allow/deny files to determine which users are allowed to use fcrontab +fcronallow = /etc/cron/cron.allow +fcrondeny = /etc/cron/cron.deny + +# Location of the programs used by fcron +shell = /bin/sh +sendmail = /usr/sbin/sendmail + +# Location of the default editor for "fcrontab -e" +#editor = /usr/bin/sensible-editor diff --git a/fcron.crontab b/fcron.crontab new file mode 100644 index 0000000..1235870 --- /dev/null +++ b/fcron.crontab @@ -0,0 +1,10 @@ +SHELL=/bin/sh +PATH=/sbin:/bin:/usr/sbin:/usr/bin +MAILTO=root +NICE=15 + +# run-parts +01 * * * * root /bin/run-parts /etc/cron.hourly +02 1 * * * root /bin/run-parts /etc/cron.daily +02 2 * * 0 root /bin/run-parts /etc/cron.weekly +02 3 1 * * root /bin/run-parts /etc/cron.monthly diff --git a/fcron.init b/fcron.init new file mode 100644 index 0000000..85ad160 --- /dev/null +++ b/fcron.init @@ -0,0 +1,62 @@ +#!/bin/sh +# +# crond Start/Stop the cron clock daemon. +# +# chkconfig: 2345 40 60 +# +# description: cron is a standard UNIX program that runs user-specified \ +# programs at periodic scheduled times. hc-cron adds a number \ +# of features to the basic UNIX cron, including better security \ +# and more powerful configuration options. +# +# processname: crond +# config: /etc/fcron.conf +# pidfile: /var/run/fcron.pid + + +# Source function library +. /etc/rc.d/init.d/functions + +# Get service config +[ -f /etc/sysconfig/cron ] && . /etc/sysconfig/cron + +RETVAL=0 +# See how we were called. +case "$1" in + start) + # Check if the service is already running? + if [ ! -f /var/lock/subsys/crond ]; then + msg_starting fcron + daemon /usr/sbin/fcron -b -c /etc/fcron.conf + RETVAL=$? + [ $RETVAL -eq 0 ] && touch /var/lock/subsys/crond + else + msg_already_running fcron + fi + ;; + stop) + # Stop daemons. + if [ -f /var/lock/subsys/crond ]; then + msg_stopping fcron + killproc fcron + rm -f /var/lock/subsys/crond >/dev/null 2>&1 + else + msg_not_running fcron + fi + + ;; + status) + status fcron + exit $? + ;; + restart|force-reload) + $0 stop + $0 start + exit $? + ;; + *) + msg_usage "$0 {start|stop|restart|force-reload|status}" + exit 3 +esac + +exit $RETVAL diff --git a/fcron.pam b/fcron.pam new file mode 100644 index 0000000..756ffc3 --- /dev/null +++ b/fcron.pam @@ -0,0 +1,11 @@ +# +# The PAM configuration file for fcron daemon +# + +account required pam_unix.so +# Warning : fcron has no way to prompt user for a password ! +auth required pam_permit.so +#auth required pam_unix.so nullok +#auth required pam_env.so +session required pam_permit.so +#session required pam_unix.so diff --git a/fcrontab.pam b/fcrontab.pam new file mode 100644 index 0000000..b9ada66 --- /dev/null +++ b/fcrontab.pam @@ -0,0 +1,18 @@ +# +# The PAM configuration file for fcrontab +# + +# WARNING : you cannot use every modules here, as some +# (such as pam_unix_acct.so) require the program to be run +# by root or suid root, and fcrontab is *not* suid root. + +### By default we do not ask user for a password +auth required pam_permit.so +#auth required pam_unix.so nullok +#auth required pam_env.so + +account required pam_permit.so +#account required pam_time.so + +session required pam_permit.so +#session required pam_unix.so -- 2.44.0