[Qa-jenkins-scm] [jenkins.debian.net] 01/02: add /etc/rc.local to git

Holger Levsen holger at moszumanska.debian.org
Wed Jul 8 20:25:17 UTC 2015


This is an automated email from the git hooks/post-receive script.

holger pushed a commit to branch master
in repository jenkins.debian.net.

commit 06fe3577f0751f6ef7a8ebf38a17b5f9404f53de
Author: Holger Levsen <holger at layer-acht.org>
Date:   Wed Jul 8 22:11:56 2015 +0200

    add /etc/rc.local to git
---
 TODO         |  2 +-
 etc/rc.local | 16 ++++++++++++++++
 2 files changed, 17 insertions(+), 1 deletion(-)

diff --git a/TODO b/TODO
index b5a7c62..d8a9837 100644
--- a/TODO
+++ b/TODO
@@ -19,7 +19,7 @@ See link:https://jenkins.debian.net/userContent/about.html["about jenkins.debian
 == General ToDo
 
 * replace amd64 in scripts with $HOSTARCH
-* put /etc/rc.local in git and extend it to do cleanup of lockfiles etc
+* extend /etc/rc.local to do cleanup of lockfiles (or do it properly the systemd way...)
 * explain in README how to write jobs, eg which pathes are on tmpfs
 
 === proper backup
diff --git a/etc/rc.local b/etc/rc.local
new file mode 100755
index 0000000..1eac904
--- /dev/null
+++ b/etc/rc.local
@@ -0,0 +1,16 @@
+#!/bin/sh -e
+#
+# rc.local
+#
+# This script is executed at the end of each multiuser runlevel.
+# Make sure that the script will "exit 0" on success or any other
+# value on error.
+#
+# In order to enable or disable this script just change the execution
+# bits.
+#
+# By default this script does nothing.
+
+echo "$(date) - system was rebooted" | mail -s "jenkins.d.n rebooted" root
+
+exit 0

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/qa/jenkins.debian.net.git



More information about the Qa-jenkins-scm mailing list