[SM-Commit] GIT changes to master grimoire by Vlad Glagolev (e582e7b0862d7f6b9610bb0628019aab2dd79690)

Vlad Glagolev scm at sourcemage.org
Wed May 13 21:18:45 EDT 2009


GIT changes to master grimoire by Vlad Glagolev <stealth at sourcemage.org>:

 utils/cronie/HISTORY      |    4 ++++
 utils/cronie/PRE_BUILD    |    4 ++++
 utils/cronie/reboot.patch |   11 +++++++++++
 3 files changed, 19 insertions(+)

New commits:
commit e582e7b0862d7f6b9610bb0628019aab2dd79690
Author: Vlad Glagolev <stealth at sourcemage.org>
Commit: Vlad Glagolev <stealth at sourcemage.org>

    cronie: fixed bug for @reboot alias

diff --git a/utils/cronie/HISTORY b/utils/cronie/HISTORY
index 8639ba8..79fd712 100644
--- a/utils/cronie/HISTORY
+++ b/utils/cronie/HISTORY
@@ -1,3 +1,7 @@
+2009-05-14 Vlad Glagolev <stealth at sourcemage.org>
+	* PRE_BUILD: apply patch to make @reboot actually work
+	* reboot.patch: added
+
 2009-05-02 Andraž "ruskie" Levstik <ruskie+f03a580f at codemages.net>
 	* init.d/crond: made it non-sh, bug #13702
 
diff --git a/utils/cronie/PRE_BUILD b/utils/cronie/PRE_BUILD
new file mode 100755
index 0000000..e049157
--- /dev/null
+++ b/utils/cronie/PRE_BUILD
@@ -0,0 +1,4 @@
+default_pre_build &&
+cd "$SOURCE_DIRECTORY" &&
+
+patch -p0 < "$SPELL_DIRECTORY/reboot.patch"
diff --git a/utils/cronie/reboot.patch b/utils/cronie/reboot.patch
new file mode 100644
index 0000000..9bca79d
--- /dev/null
+++ b/utils/cronie/reboot.patch
@@ -0,0 +1,11 @@
+--- src/cron.c.orig	2009-04-23 13:24:27.000000000 +0400
++++ src/cron.c	2009-05-14 05:01:15.925392269 +0400
+@@ -399,7 +399,7 @@
+ 	pid_t pid = getpid();
+ 
+ 	/* lock exist - skip reboot jobs */
+-	if (access(REBOOT_LOCK, F_OK)) {
++	if (access(REBOOT_LOCK, F_OK) == 0) {
+ 		log_it("CRON", pid, "INFO", "@reboot jobs will be run at computer's startup.", 0);
+ 		return;
+ 	}



More information about the SM-Commit mailing list