Stranded Camel
Explorer
- Joined
- May 25, 2017
- Messages
- 79
I need to run a postinit script, which I've carefully written to use only full command paths. It works perfectly when I run it manually, but when I set it to be run automatically as a postinit script, it's never run.
Now, the script is on an encrypted volume, but I've been unencrypting it as soon as possible after boot. But still, no joy.
It was then that I realized that apparently no one knows just when FreeNAS runs postinit scripts -- the manual neglects to provide this information, and much googling has shown that I'm not the only person with this question, and no one seems to know the answer. Plus, there's no option to set a delay before running such scripts (and using
So if anyone has this information, I'd be grateful to hear.
Assuming this is a lost cause, where can I put postinit scripts so that they can be run before encrypted volumes are decrypted? It seems the USB sticks FreeNAS is installed on can't be used for this. And so I'm stuck...
Now, the script is on an encrypted volume, but I've been unencrypting it as soon as possible after boot. But still, no joy.
It was then that I realized that apparently no one knows just when FreeNAS runs postinit scripts -- the manual neglects to provide this information, and much googling has shown that I'm not the only person with this question, and no one seems to know the answer. Plus, there's no option to set a delay before running such scripts (and using
sleep
doesn't work if the script fails to run). This is absolutely key to resolving the problem I'm facing -- if "postinit" means as soon as the system has booted up completely, for example, then an encrypted volume can never be used to host a script.So if anyone has this information, I'd be grateful to hear.
Assuming this is a lost cause, where can I put postinit scripts so that they can be run before encrypted volumes are decrypted? It seems the USB sticks FreeNAS is installed on can't be used for this. And so I'm stuck...