I've installed udisks-glue on my Raspbian Raspberry Pi, along with a System V init script at
/etc/init.d/udisks-glue (as per instructions here). I make it executable and run the following, which returns no errors.
sudo update-rc.d udisks-glue defaults
I can start the script fine, and it works as expected.
$ sudo service udisks-glue start [ ok ] Starting Automounter: udisks-glue. $ sudo service udisks-glue status [ ok ] udisks-glue is running.
However, when I reboot, it's not running. This used to work fine, but I reinstalled a minimal system, and it no longer works. It's possible that I'm missing some packages.
$ sudo service udisks-glue status [FAIL] udisks-glue is not running ... failed!
I've tried to log output and errors by changing a line in the
start) block to
start-stop-daemon --start --exec $DAEMON -- -p $PIDFILE &>> /tmp/udisks-glue.log
This file is empty on reboot. However, it does exist, suggesting that the script is at least partially executed.
Finally, I've tried to confirm proper installation. Amongst other things,
locate udisks-glue returns
/etc/rc0.d/K01udisks-glue /etc/rc1.d/K01udisks-glue /etc/rc2.d/S01udisks-glue /etc/rc3.d/S01udisks-glue /etc/rc4.d/S01udisks-glue /etc/rc5.d/S01udisks-glue /etc/rc6.d/K01udisks-glue
EDIT — Further troubleshooting
I thought I might test if the script was acting too early, so I tested two possible solutions. Both failed. Firstly, I tried making the script run at a lower priority.
Secondly, I reverted this then inserted
sleep 90 into the
start) block, just before the