[Nottingham] How to find out the names of init.d or systemd events?
jasonirwin73 at gmail.com
Mon Apr 27 11:07:10 UTC 2015
Maybe "events" is the wrong word, but this is the situation:
I have a small init.d script that needs a USB mount to be active before
should can run.
I've jury-rigged a little loop in the init.d script to poll for the
location over a 30 second period before giving up.
Whilst this works, it seems a bit crappy; I'd rather hook into the
My problem is, I've no idea what the "mounting USB" event would be
called nor how to find out.
Anyone any ideas?
I took a guess at the init.d "$mountall", but that doesn't appear to be it.
I've also got a nasty feeling it's systemd doing the mounting, and I am
not sure init.d is aware of those events.
Easy enough to move the script to systemd if that's what it takes.
I guess as the USB drive is intended to be permanently attached I could
just fstab it...but I'm still curious on how to find out what runs when.
This is on OSMC which is a stripped-down version of Debian Jessie, so no
real syslog etc.
║ Jason Irwin ║ OpenPGP (GPG/PGP) Public Key: 0xD0C592B1 ║
║ ║ Import from hkp://pgp.mit.edu ║
More information about the Nottingham