We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Can I make postgres a system service in macos with serviceman?
The text was updated successfully, but these errors were encountered:
Yes.
# Mac (Login / Launch Agent) sudo env PATH="$PATH" \ serviceman add --name postgres --path "${PATH}" --user -- \ postgres -D "$HOME/.local/share/postgres/var" -p 5432
# Linux (or System Boot / Launch Daemon on Mac) sudo env PATH="$PATH" \ serviceman add --name postgres --path "${PATH}" \ --system --username "$(id -u -n)" --force -- \ postgres -D "$HOME/.local/share/postgres/var" -p 5432 \ --unix-socket-directories="$HOME/.local/share/postgres/var/run/"
The --force is necessary because serviceman gets confused thinking that --foo=/bar describes a file (it expects --foo /bar, but that should be fixed).
--force
serviceman
--foo=/bar
--foo /bar
Sorry, something went wrong.
coolaj86
No branches or pull requests
Can I make postgres a system service in macos with serviceman?
The text was updated successfully, but these errors were encountered: