Skip to content

Installing a systemd timer #1978

@work-robot

Description

@work-robot

I'd like to install a systemd timer via a Debian package. Is there a particular way of expressing this in fpm, similarly to --deb-systemd?

If I use --deb-systemd for a timer (foo.timer), it seems to append .service to the filename (-> foo.timer.service).

I can install a timer by specifying the timer file as an ordinary file, to be placed in /usr/lib/systemd/system and using an after-install hook to create the symlink in the timer.target.wants directory, but I was wondering if there's a better way.

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