diff options
| author | Prasanna Kumar Kalever <prasanna.kalever@redhat.com> | 2019-10-18 18:00:06 +0530 |
|---|---|---|
| committer | Prasanna Kumar Kalever <prasanna.kalever@redhat.com> | 2019-10-30 15:57:15 +0530 |
| commit | b36f0a0e27cdea9128cdf71e696e05bdfd12e462 (patch) | |
| tree | 9e6687570c9dd59879fd8d8152940b4bc5f18893 /daemon | |
| parent | 332e7c0e6fceffc620a426cf2d765b62b8dfe406 (diff) | |
| download | targetcli-b36f0a0e27cdea9128cdf71e696e05bdfd12e462.tar.gz | |
cli: provide a way to disable using daemon
Problem:
-------
Currently when auto_use_daemon is set to true and in case for some
reasons user do not want to start the daemon or the dameon is not starting
succefully for some unknown reason, then there is no way to bypass the
calls to dameon and use cli directly
$ targetcli pwd
[Errno 111] Connection refused
Solution:
--------
Provide an option with cli to turn auto_use_daemon to false.
$ targetcli pwd
[Errno 111] Connection refused
Currently auto_use_daemon is true, hence please make sure targetclid daemon is running ...
(or)
Incase if you wish to turn auto_use_daemon to false then run '#targetcli --disable-daemon'
$ targetcli --help
Usage: ./scripts/targetcli [--version|--help|CMD|--tcp|--disable-daemon]
[...]
--disable-daemon Turn-off the global auto use daemon flag
See man page for more information.
$ targetcli --disable-daemon
Parameter auto_use_daemon is now 'false'.
$ targetcli pwd
/
Signed-off-by: Prasanna Kumar Kalever <prasanna.kalever@redhat.com>
Diffstat (limited to 'daemon')
0 files changed, 0 insertions, 0 deletions
