FG
💻 Software

init.d script not executing?

Fresh7 days ago
Mar 15, 20265363 views
Confidence Score0%
0%

Problem

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,…

Error Output

#!/bin/sh -e
modprobe raid5
mdadm --assemble --scan
mdadm --monitor --scan --daemonize --delay 120 --program /etc/mdadm/scram.sh
mount -t xfs /dev/md…

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: init.d script not executing?

Low Risk

"S01" means it runs pretty early in the boot process. First thing I'd do is make sure that there aren't things that need to run first that are later (have higher numbers). On my Ubuntu system, sysklogd is S10 and mdadm is S25, so at least make it hi…

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment