That's for sure easy enough to write one, but it's even easier when it's already written :)
Here is an example of a service file:
[Unit]
Description="pg_back's service"
[Service]
User=postgres
ExecStart=/usr/bin/pg_back
Type=oneshot
And here is an example of a timer file:
[Unit]
Description="pg_back service's timer"
[Timer]
OnCalendar=*-*-* 21:00
Persistent=true
[Install]
WantedBy=timers.target
Adding them to your rpm and deb files would be great (they have to be installed in the /etc/systemd/system directory).
Thanks.
That's for sure easy enough to write one, but it's even easier when it's already written :)
Here is an example of a service file:
And here is an example of a timer file:
Adding them to your rpm and deb files would be great (they have to be installed in the
/etc/systemd/systemdirectory).Thanks.