samer@0: #!/bin/sh -e samer@0: # samer@0: # rc.local samer@0: # samer@0: # This script is executed at the end of each multiuser runlevel. samer@0: # Make sure that the script will "exit 0" on success or any other samer@0: # value on error. samer@0: # samer@0: # In order to enable or disable this script just change the execution samer@0: # bits. samer@0: # samer@0: if [ -x ~dml/.boot ]; then samer@0: echo "Executing boot script for user dml" samer@0: sudo -u dml mkdir -p ~dml/var/log samer@0: sudo -u dml -H bash -l -c '~/.boot >> ~/var/log/boot.log' samer@0: fi samer@0: exit 0