Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
open-osd: up: Complete revamp of ./up script
This is partly based on the scripts we used for the JUNE11 testing. * Split all configuration into an up.conf file If up.conf does not exist in current dir, an example one is created and user is instructed to edit it. * Load as many targets as defined in up.conf file. * Script no longer stays in foreground, it will redirect all output into a log file (defined in up.conf) and exit after loading. * Add more sub-commands to the up script: - up "" : No sub-command try to load a target as before - up down: Properly shut down a running otgtd daemon - up stat: Print "UP" or "DOWN" depending of otgtd presence in "ps ax" - up show: Use tgtadm to print currently loaded targets - up log: "less" into the log-file at end (+F) - up log-reset empty current log file * teach .gitignore to ignore up.conf Hopefully this stops the ./up bickering back and forth every new setup. Signed-off-by: Boaz Harrosh <bharrosh@panasas.com>
- Loading branch information
Boaz Harrosh
committed
Nov 3, 2011
1 parent
b8be9d4
commit 9652186
Showing
3 changed files
with
88 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters