Quantcast
Channel: Active questions tagged ubuntu - Stack Overflow
Viewing all articles
Browse latest Browse all 5956

auto Start pgagent Service on Ubuntu Docker Container

$
0
0

I have a Postgres Docker container and have installed systemd, pgagent, and created pgagent.sh and pgagent.conf using the following example: https://gist.github.com/v4r15/b246b81ec09c488ebecac4610d975456

I'm getting the following error when trying to reload the Deamon:

System has not been booted with systemd as init system (PID 1). Can't operate.Failed to connect to bus: Host is down

My main goal is to auto start pgagent when the container startsup or restarts.

I tried everything in the previous question. All parts of pgagent are there and I can schedule jobs and such but I have to manually start pgagent using: pgagent hostaddr=postgres dbname=postgres user=postgres -s pgagent_log.log when the container is first built and on each restart.


Viewing all articles
Browse latest Browse all 5956

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>