summaryrefslogtreecommitdiff
path: root/time/vixie-cron/files
diff options
context:
space:
mode:
authorreed <reed@pkgsrc.org>2008-03-08 18:38:14 +0000
committerreed <reed@pkgsrc.org>2008-03-08 18:38:14 +0000
commit6c54531016b2537e3d87ae063e960d396b32dd1b (patch)
tree9b829013f725c0aa52a6da90c15ff1f68ace13df /time/vixie-cron/files
parentc752fd360812f8585946cba0f39db6e90886ac27 (diff)
downloadpkgsrc-6c54531016b2537e3d87ae063e960d396b32dd1b.tar.gz
Import package from pkgsrc-wip: vixie-cron.
(Note this has some differences from NetBSD's cron, such as by default users can't have own crontabs unless allowed.) Vixie Cron is a popular implementation of cron for running scheduled commands for the system and regular users. This is a version of 'cron' that is known to run on most systems. It is functionally based on the SysV cron, which means that each user can have their own crontab file (all crontab files are stored in a read-protected directory). A message is logged each time a command is executed; also, the files "allow" and "deny" can be used to control access to the "crontab" command (which installs crontabs).
Diffstat (limited to 'time/vixie-cron/files')
-rw-r--r--time/vixie-cron/files/cron.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/time/vixie-cron/files/cron.sh b/time/vixie-cron/files/cron.sh
new file mode 100644
index 00000000000..5563d249a35
--- /dev/null
+++ b/time/vixie-cron/files/cron.sh
@@ -0,0 +1,16 @@
+#!@RCD_SCRIPTS_SHELL@
+#
+
+# PROVIDE: cron
+# REQUIRE: LOGIN
+# KEYWORD: shutdown
+
+. /etc/rc.subr
+
+name="cron"
+rcvar=$name
+command="@PREFIX@/sbin/${name}"
+pidfile="/var/run/${name}.pid"
+
+load_rc_config $name
+run_rc_command "$1"