2022-09-08 08:39:02.127 IST [959] LOG: terminating TimescaleDB background worker launcher due to administrator command 2022-09-08 08:39:02.127 IST [963] LOG: terminating TimescaleDB job scheduler due to administrator command 2022-09-08 08:39:02.127 IST [945] LOG: received smart shutdown request 2022-09-08 08:39:02.127 IST [959] FATAL: terminating connection due to administrator command 2022-09-08 08:39:02.129 IST [963] FATAL: terminating connection due to administrator command 2022-09-08 08:39:02.131 IST [945] LOG: background worker “TimescaleDB Background Worker Launcher” (PID 959) exited with exit code 1 2022-09-08 08:39:02.131 IST [945] LOG: background worker “logical replication launcher” (PID 960) exited with exit code 1 2022-09-08 08:39:02.131 IST [945] LOG: background worker “TimescaleDB Background Worker Scheduler” (PID 963) exited with exit code 1 2022-09-08 08:39:02.131 IST [954] LOG: shutting down 2022-09-08 08:39:02.159 IST [945] LOG: database system is shut down
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Hi there,
It sounds like you might have to enable the Postgres service:
sudo systemctl enable postgresql.service
That way after you restart your server, the Postgres service will automatically start on boot.
Hope that this helps.
Best,
Bobby
Hello @ee4a56606d9d-4339-8f2c-487a86
You can create a simple script to check if Posgresql is running and if not to start the service.
- #!/bin/bash
-
- # Check if MySQL is running
- sudo systemctl status postgresql.service > /dev/null 2>&1
-
- # Restart the MySQL service if it's not running.
- if [ $? != 0 ]; then
- sudo systemctl start postgresql.service
- fi
Regards
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.