-
Notifications
You must be signed in to change notification settings - Fork 1
Rename citrix.sh to cwm.sh, update docs for 5L-Labs org #2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -1,4 +1,4 @@ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| # osx-citrix-manager-cli | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| # Citrix Workspace Manager (`cwm`) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| A macOS CLI tool to safely park and unpark Citrix Workspace without requiring a reboot. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
@@ -13,7 +13,7 @@ Simply killing Citrix Workspace processes leaves macOS in a broken state: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ## The Solution | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| `citrix.sh` uses `launchctl bootout`/`bootstrap` to cleanly unload and reload all Citrix services in the correct dependency order — no reboot required. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| `cwm` uses `launchctl bootout`/`bootstrap` to cleanly unload and reload all Citrix services in the correct dependency order — no reboot required. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ### Stop (Park) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
@@ -31,29 +31,38 @@ Reloads services hub-to-edge: bootstraps system LaunchDaemons first, then user L | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ## Installation | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ### Via Homebrew (recommended) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ```bash | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| brew tap 5L-Labs/citrix-cli | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| brew install citrix-workspace-manager | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ``` | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ### Manual | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ```bash | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| git clone https://github.com/NickJLange/osx-citrix-manager-cli.git | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| git clone https://github.com/5L-Labs/osx-citrix-manager-cli.git | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| cd osx-citrix-manager-cli | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| chmod +x scripts/citrix.sh | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| chmod +x scripts/cwm.sh | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ``` | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ## Usage | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ```bash | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| # Check current Citrix status | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ./scripts/citrix.sh status | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| cwm status | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| # Stop (park) all Citrix services | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| sudo ./scripts/citrix.sh stop | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| sudo cwm stop | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| # Start (unpark) all Citrix services | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| sudo ./scripts/citrix.sh start | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| sudo cwm start | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| # Preview what would happen without making changes | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| sudo ./scripts/citrix.sh --dry-run stop | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| sudo cwm --dry-run stop | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| # Verbose output for debugging | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| sudo ./scripts/citrix.sh --verbose start | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| sudo cwm --verbose start | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Comment on lines
+53
to
+65
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. P3: Usage examples assume a Prompt for AI agents
Suggested change
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ``` | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Comment on lines
+41
to
66
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ## Commands | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The manual verification steps run
./scripts/cwm.sh statuswithout sudo, but the script currently usessudo launchctl print system/...for daemon checks, which will prompt for credentials and can hang/fail in non-interactive runs. Consider updating the verification commands to usesudoforstatus(or adjust the script to avoid sudo prompts for status as noted in_daemon_is_loaded).