I have a script on ubuntu that I put in /etc/init.d. It has 0755 permissions, and I can run it manually both executing it and sourcing it, with good results. I have symlinks in both /etc/rc3.d and /etc/rc5.d, both named S01raid, both pointing to the init.d script. When I reboot the machine however, the script doesn't seem to run. I dont see the array mounted or even running, nor do I see the monitor daemon running on the ps -A output
What am I missing here?
#!/bin/sh -e modprobe raid5 mdadm --assemble --scan mdadm --monitor --scan --daemonize --delay 120 --program /etc/mdadm/scram.sh mount -t xfs /dev/md0 /mnt/