I know that I can start a Postgres DB using pg_ctl start -D $DBPATH
, but that'll throw if the DB is already started. How do I start the DB only if it's not already running? Relatedly, how do I check if the DB is already running from only the file system?
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.