Skip to content
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

HOWTO: Setting up a parallel redis service as a custom service? #600

Closed
kvaradhan3 opened this issue Nov 9, 2023 · 1 comment
Closed
Labels

Comments

@kvaradhan3
Copy link

Redis suggests running separate instances for different applications, and I am trying ot see how to accomplish this.

Right now, I have:

~ ➜ brew config                                                   ⚡▮▮▮▮▮▮▮▮▮▯ 13:05:39
HOMEBREW_VERSION: 4.1.19
ORIGIN: https://github.com/Homebrew/brew
HEAD: 7f745d04d90eaec76c8d5830d6ce6a0d7db888b3
Last commit: 4 days ago
Core tap JSON: 09 Nov 16:00 UTC
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CASK_OPTS: []
HOMEBREW_DISPLAY: /private/tmp/com.apple.launchd.0e06XWTw0h/org.xquartz:0
HOMEBREW_MAKE_JOBS: 16
Homebrew Ruby: 2.6.10 => /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/bin/ruby
CPU: 16-core 64-bit kabylake
Clang: 14.0.3 build 1403
Git: 2.39.2 => /Applications/Xcode.app/Contents/Developer/usr/bin/git
Curl: 8.1.2 => /usr/bin/curl
macOS: 13.6-x86_64
CLT: 15.0.0.0.1.1694021235
Xcode: 14.3.1
~ ➜ brew services                                                             ⚡▮▮▮▮▮▮▮▮▮▯ 13:09:31
Name           Status  User      File
bind           none
docker-machine none
postgresql@14  none
redis          started kvaradhan ~/Library/LaunchAgents/homebrew.mxcl.redis.plist
unbound        none    root
vault          started kvaradhan ~/Library/LaunchAgents/homebrew.mxcl.vault.plist

If I want to start a second instance, this doesn't work:

~ ➜ brew services start redis --file=~/Library/LaunchAgents/redis-my-db.plist ⚡▮▮▮▮▮▮▮▮▮▯ 13:16:11
Usage: brew services [subcommand]

Manage background services with macOS' launchctl(1) daemon manager or Linux's
systemctl(1) service manager.
...

neither does this:

~ ➜ brew services start my-redis --file=~/Library/LaunchAgents/redis-my-db.plist
Error: No available formula with the name "my-redis". Did you mean redis?
~ ➜ brew services start myredis --file=~/Library/LaunchAgents/redis-my-db.plist
Error: No available formula with the name "myredis". Did you mean redis or iredis?

How would I start a custom redis service instance for my application, or actually define my own service?

Thanks,

Kannan

@SMillerDev
Copy link
Member

That's not a supported use case for brew services

@SMillerDev SMillerDev closed this as not planned Won't fix, can't repro, duplicate, stale Nov 10, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 11, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants