Skip to content

Add a service file and a timer file in the package #161

@gleu

Description

@gleu

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions