[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Favoring systemd timers over cron files Re: Removing sysV init files



On 01/15/2016 09:06 PM, Michael Biebl wrote:
> If your package ships both a systemd service unit and a sysv init
> script, you need to make sure that under systemd the native service file
> is used.
> The easiest way to achieve that is to use the same names for the unit
> file and the init script, i.e.
> /etc/init.d/foo should match /lib/systemd/system/foo.service
> 
> If the names do not match, you can ship a (static) symlink in the
> package, say you have
> /etc/init.d/foo and /lib/systemd/system/bar.service.
> Then ship a symlink like this
> /lib/systemd/system/foo.service → /lib/systemd/system/bar.service

Does this also work somehow for e.g. foo-daily.service + foo-daily.timer
being favored over /etc/cron.daily/foo?
Next to a foo.service being favored over /etc/init.d/foo.

Thanks and greets
jre


Reply to: