sethgoldin / davinci-resolve-postgresql-workflow-tools

Effortlessly set up automatic backups and automatic optimizations of DaVinci Resolve Studio's PostgreSQL databases
Other
80 stars 11 forks source link

systemd timers don't have permissions to start after a reboot on CentOS #10

Closed sethgoldin closed 6 years ago

sethgoldin commented 6 years ago

This seems to be some sort of permissions issue. Running sudo systemctl start backup-<database>.timer and sudo systemctl start optimize-<database>.timer, and then authorizing with a password after each, seems to get everything working properly again.

The timers somehow need to be given permission to start after a reboot.

sethgoldin commented 6 years ago

Looking for some information on Reddit: https://www.reddit.com/r/CentOS/comments/8gvqcm/wondering_why_a_systemd_timer_doesnt_start_after/

sethgoldin commented 6 years ago

https://www.reddit.com/r/linuxquestions/comments/8gvt3k/wondering_why_a_systemd_timer_doesnt_start_after/

sethgoldin commented 6 years ago

A couple of issues need to be addressed:

  1. The services need to be enabled, not just started.
  2. The units don't need to be unmasked.
sethgoldin commented 6 years ago

11 fixes this. It has been tested and is working well in production.