Changes between Version 32 and Version 33 of HowTo/WriteInstallScript
- Timestamp:
- 06/09/16 13:58:24 (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
HowTo/WriteInstallScript
v32 v33 133 133 * fix any errors, upload your script and retest it. 134 134 135 === 3.1 Debugging tips (InstaGENI only) === 135 = 4. Modify your RSpec = 136 Now that you have a script that you believe works it is time to add the script to your request RSpec so it is executed at the creation time of your slivers (resources). 137 138 = 5. Tips = 139 === For InstaGENI aggregates === 136 140 * A log of the execution of your script is written to {{{/var/emulab/logs/runlog}}}. It often has information that can help you determine why your script failed. 137 141 * Execute scrips are run by an account called "geniuser". This user may not have access to your home directory. You can have the script run as you by setting the execute element in the Spec to: 138 142 {{{ <execute shell="sh" command="sudo su youruser -c 'my-script.sh arg'"/> }}} 139 140 = 4. Modify your RSpec =141 Now that you have a script that you believe works it is time to add the script so that it is executed at the creation time of your slice.142 143 = Useful tips =