How to install and enable timer units in a package?

Gioele Barabucci gioele at svario.it
Mon Dec 12 20:40:23 GMT 2016


Hello,

I'd like to create a Debian package for an application that uses systemd
timers instead of cron jobs. Installing the `.service` and `.timer`
units is easy, one just copied them into `/lib/systemd/system/`.

My open question now is: how does one enable/start the installed timer
unit "in the right way"?

Should I use a postinst maintscript to manually enable and start the
timer or are there other and better facilities that I can use?

Regards,

--
Gioele Barabucci <gioele at svario.it>





More information about the Pkg-systemd-maintainers mailing list