summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--TODO2
-rwxr-xr-xetc/rc.local16
2 files changed, 17 insertions, 1 deletions
diff --git a/TODO b/TODO
index b5a7c620..d8a9837e 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 00000000..1eac9049
--- /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