diff options
-rw-r--r-- | TODO | 2 | ||||
-rwxr-xr-x | etc/rc.local | 16 |
2 files changed, 17 insertions, 1 deletions
@@ -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 |