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

How to fetch unit with a dash? #9

Open
totszwai opened this issue Feb 5, 2025 · 0 comments
Open

How to fetch unit with a dash? #9

totszwai opened this issue Feb 5, 2025 · 0 comments

Comments

@totszwai
Copy link

totszwai commented Feb 5, 2025

How to get your script to work with service that has a dash in its name?

[root@docker-desktop /]# /usr/pgsql-15/bin/postgresql-15-setup initdb
grep: : No such file or directory
grep: : No such file or directory
grep: : No such file or directory
grep: : No such file or directory
Failed to show -p.service: Unit -p.service not found.
failed to find PGDATA setting in postgresql-15.service

[root@docker-desktop /]# find / -name "*.service" | grep postgres
/usr/lib/systemd/system/postgresql-15.service
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant