Description
RunLast creates an environment to run commands or shell-scripts after QPKG re-integration has occurred during QTS NAS bootup.
This allows you to run scripts dependent on QPKGs during QTS startup.
What it does
This package creates a scripts directory in the package installation path:
Code: Select all
init.d
Code: Select all
scripts
Installation
- available in the MyQNAP repo, and can also be installed via the sherpa package manager.
Notes
- When this package is installed, there's not much to see. Find the package icon and click the 'Open' button to display the current log file - any stdout and stderr from your scripts will be shown here.
- The log file is viewable via your web browser but is not a real web document, so it can change without your browser noticing. Whenever viewing the log, ensure you force a page refresh: CTRL+F5.
- To jump to the scripts directory:
Code: Select all
cd $(getcfg RunLast Scripts_Path -f /etc/config/qpkg.conf)
- Or, to jump to the init.d directory:
Code: Select all
cd $(getcfg RunLast SysV_Path -f /etc/config/qpkg.conf)
- The source for this project can be found on GitHub.