Re: Questions about packaging systemd unit files

2018-08-06 Thread Michael Biebl
Am 06.08.2018 um 20:52 schrieb Josh Triplett: > (Note that putting a line in your cron entry to exit if under systemd still > means cron needs to go run that script and have it exit, which is not ideal.) It's maybe not ideal but what I would suggest. The recommended way to check whether systemd

Re: Questions about packaging systemd unit files

2018-08-06 Thread Josh Triplett
Theodore Y. Ts'o wrote: > Finally, if I have a systemd timer file, as well as a crontab entry, > what is the recommended way to decide whether to install/use the > crontab versus the timer unit file? Unfortunately, there isn't a clean mechanism for that. For systemd unit files, systemd's built-in

Re: Questions about packaging systemd unit files

2018-08-06 Thread Niels Thykier
Theodore Y. Ts'o: > On Sun, Aug 05, 2018 at 10:20:38PM +0100, Simon McVittie wrote: >> On Sun, 05 Aug 2018 at 16:52:46 -0400, Theodore Y. Ts'o wrote: >>> 1) Am I right in understanding that after modifying or adding any >>>systemd unit or timer files, I must run "systemctl daemon-reload"? >>

Re: Questions about packaging systemd unit files

2018-08-06 Thread Ben Hutchings
On Mon, 2018-08-06 at 09:14 -0400, Theodore Y. Ts'o wrote: [...] > One of the reasons why I hadn't considered using dh_installinit or > dh_installsystemd is because the patches submitted upstream for > e2scrub[1] currently install the systemd unit as part of Makefile > rules. I could move them

Re: Questions about packaging systemd unit files

2018-08-06 Thread Theodore Y. Ts'o
On Sun, Aug 05, 2018 at 10:20:38PM +0100, Simon McVittie wrote: > On Sun, 05 Aug 2018 at 16:52:46 -0400, Theodore Y. Ts'o wrote: > > 1) Am I right in understanding that after modifying or adding any > >systemd unit or timer files, I must run "systemctl daemon-reload"? > > Yes, but preferably

Re: Questions about packaging systemd unit files

2018-08-05 Thread Simon McVittie
On Sun, 05 Aug 2018 at 16:52:46 -0400, Theodore Y. Ts'o wrote: > 1) Am I right in understanding that after modifying or adding any >systemd unit or timer files, I must run "systemctl daemon-reload"? Yes, but preferably via dh_installinit (if you also have a corresponding LSB/sysvinit script,

Re: Questions about packaging systemd unit files

2018-08-05 Thread Marco d'Itri
On Aug 05, "Theodore Y. Ts'o" wrote: > 1) Am I right in understanding that after modifying or adding any >systemd unit or timer files, I must run "systemctl daemon-reload"? Yes. > 2) How is this supposed to be done as part of a debian package >install? Should the package maintainer

Questions about packaging systemd unit files

2018-08-05 Thread Theodore Y. Ts'o
One of my packages is about to have some systemd unit and timer files added to it. Some questions: 1) Am I right in understanding that after modifying or adding any systemd unit or timer files, I must run "systemctl daemon-reload"? 2) How is this supposed to be done as part of a debian