Commit 2e6e76bd authored by Julien Leduc's avatar Julien Leduc
Browse files

This is just a copy of the content of the file that is mounted in

/shared/rc.local in case I loose my devbox.
parent ee981c7c
# It is highly advisable to create own systemd services or udev rules
# to run scripts during boot instead of using this file.
# In contrast to previous versions due to parallel execution during boot
# this script will NOT be run after all other services.
# Please note that you must run 'chmod +x /etc/rc.d/rc.local' to ensure
# that this script will be executed during boot.
#touch /var/lock/subsys/local
# rc.local envinronment is empty but I need all the kubernetes environment variables
# to go further and configure the services.
# As systemd is the container entry point it gets the environment variables from kubernetes
# and I can source them for further use.
#if [ -e /proc/1/environ ]; then
# while read -d $'\0' ENV; do export "$ENV"; done < /proc/1/environ
printenv > /tmp/rc.local.shared
if [ $(echo ${MY_NAME} | grep -s '^ctafrontend') ]; then
echo "Running /shared/" &> ${logfile}
/opt/run/bin/ 2>&1 | tee -a ${logfile}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment