David Dyer-Bennet
Patron
- Joined
- Jul 13, 2013
- Messages
- 286
I sort-of think my post-init script isn't running when the box starts. Would there normally be any log entries made indicating it ran (or how it failed), and if so what would they look like and which log would they be in? (I'm kind of expecting I'd find the script name appearing in some log file, and I don't find it in any of them.)
I can run the script manually (as root; it has things in it that require root), and the file seems to have sane protections. I browsed to the file from the dialog box for setting up the init script, so I can't really have the path wrong (and it looks right). Short of starting to add exotic "instrumentation" into my script, how do I debug this?
Also, when does "post-init" happen, and also when does pre-init happen? I'm reasonably sure this script is better run later rather than earlier, but since I'm learning this new area of FreeNAS I'd like to understand roughly when those two things happen.
I can run the script manually (as root; it has things in it that require root), and the file seems to have sane protections. I browsed to the file from the dialog box for setting up the init script, so I can't really have the path wrong (and it looks right). Short of starting to add exotic "instrumentation" into my script, how do I debug this?
Also, when does "post-init" happen, and also when does pre-init happen? I'm reasonably sure this script is better run later rather than earlier, but since I'm learning this new area of FreeNAS I'd like to understand roughly when those two things happen.