diff options
author | Holger Levsen <holger@layer-acht.org> | 2015-07-08 22:11:56 +0200 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2015-07-08 22:11:56 +0200 |
commit | 06fe3577f0751f6ef7a8ebf38a17b5f9404f53de (patch) | |
tree | 1628b232cb550fcf55b20b1a23851483b7668b7e | |
parent | 7e0d0c1258190c9b2f3a852d7a8f3054e7175df0 (diff) | |
download | jenkins.debian.net-06fe3577f0751f6ef7a8ebf38a17b5f9404f53de.tar.xz |
add /etc/rc.local to git
-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 |