Re: Start of systemd timers after install/update of a package

2013-01-25 Thread Jóhann B. Guðmundsson
On 01/24/2013 11:53 PM, Lennart Poettering wrote: a) list them in the %systemd_post rpm macro (and the other macros too) like you would do for service units. Note that %systemd_post and friends take an arbitrary amount of unit names. To enable these timer units by default, you'd also

Re: Start of systemd timers after install/update of a package

2013-01-25 Thread Jóhann B. Guðmundsson
On 01/25/2013 06:26 AM, Adam Williamson wrote: I can't find it, but isn't there something in the guidelines which says you don't need an explicit dependency on anything that's part of @core? Making the assumption that the core comps never changes and having packages depend on that makes no

Re: Start of systemd timers after install/update of a package

2013-01-25 Thread Marcela Mašláňová
On 01/24/2013 06:30 PM, Jóhann B. Guðmundsson wrote: On 01/24/2013 04:28 PM, Bill Nottingham wrote: Tomas Mraz (tm...@redhat.com) said: On Thu, 2013-01-24 at 16:03 +0100, Jochen Schmitt wrote: Hello, I have tried to migrating the cron jobs of the inn package to systemd timers. Unfortunately,

Re: Start of systemd timers after install/update of a package

2013-01-25 Thread Matthew Miller
On Fri, Jan 25, 2013 at 03:46:34PM +0100, Marcela Mašláňová wrote: What is the added value of migration of cron jobs? I, as maintainer of cron, obviously don't see the added value. What might be interesting would be converting cron.daily jobs as systemd task. If systemd could execute daily job

Re: Start of systemd timers after install/update of a package

2013-01-25 Thread Matthew Miller
On Fri, Jan 25, 2013 at 12:53:02AM +0100, Lennart Poettering wrote: c) Or you could list them as Wants= dependency in your service unit's [Service] section. That means that whenever your service unit is started, your time unit is too. No need for preset file changes. I think c) is the

Re: Start of systemd timers after install/update of a package

2013-01-25 Thread Jóhann B. Guðmundsson
On 01/25/2013 02:46 PM, Marcela Mašláňová wrote: What is the added value of migration of cron jobs? I, as maintainer of cron, obviously don't see the added value. What might be interesting would be converting cron.daily jobs as systemd task. If systemd could execute daily job in time, when

Re: Start of systemd timers after install/update of a package

2013-01-25 Thread Jóhann B. Guðmundsson
On 01/25/2013 03:19 PM, Matthew Miller wrote: If that were done, how easy would it be for system administrators who need these jobs to actually run at a specific time to adjust that? You alter the time units the same way you alter any service unit ( same hurdle ) JBG -- devel mailing list

Re: Start of systemd timers after install/update of a package

2013-01-25 Thread Lennart Poettering
On Fri, 25.01.13 08:36, Jóhann B. Guðmundsson (johan...@gmail.com) wrote: On 01/24/2013 11:53 PM, Lennart Poettering wrote: a) list them in the %systemd_post rpm macro (and the other macros too) like you would do for service units. Note that %systemd_post and friends take an arbitrary

Re: Start of systemd timers after install/update of a package

2013-01-25 Thread Lennart Poettering
On Fri, 25.01.13 10:25, Matthew Miller (mat...@fedoraproject.org) wrote: On Fri, Jan 25, 2013 at 12:53:02AM +0100, Lennart Poettering wrote: c) Or you could list them as Wants= dependency in your service unit's [Service] section. That means that whenever your service unit is started,

Re: Start of systemd timers after install/update of a package

2013-01-25 Thread Jóhann B. Guðmundsson
On 01/25/2013 06:32 PM, Lennart Poettering wrote: That's a clear no. Preset files shall never be shipped by their own packages. That defeats their point. Then timer units should always be enabled in the preset config JBG -- devel mailing list devel@lists.fedoraproject.org

Start of systemd timers after install/update of a package

2013-01-24 Thread Jochen Schmitt
Hello, I have tried to migrating the cron jobs of the inn package to systemd timers. Unfortunately, I have got the following problem. After a install/update of the package the timer will only start the service unit only once time. The service was not started after the configure period was

Re: Start of systemd timers after install/update of a package

2013-01-24 Thread Tomas Mraz
On Thu, 2013-01-24 at 16:03 +0100, Jochen Schmitt wrote: Hello, I have tried to migrating the cron jobs of the inn package to systemd timers. Unfortunately, I have got the following problem. After a install/update of the package the timer will only start the service unit only once time. The

Re: Start of systemd timers after install/update of a package

2013-01-24 Thread Michal Schmidt
On 01/24/2013 04:03 PM, Jochen Schmitt wrote: The service was not started after the configure period was expired. Was the timer unit active? What does systemctl status yourunit.timer show? Michal -- devel mailing list devel@lists.fedoraproject.org

Re: Start of systemd timers after install/update of a package

2013-01-24 Thread Bill Nottingham
Tomas Mraz (tm...@redhat.com) said: On Thu, 2013-01-24 at 16:03 +0100, Jochen Schmitt wrote: Hello, I have tried to migrating the cron jobs of the inn package to systemd timers. Unfortunately, I have got the following problem. After a install/update of the package the timer

Re: Start of systemd timers after install/update of a package

2013-01-24 Thread Jochen Schmitt
On Thu, Jan 24, 2013 at 04:53:01PM +0100, Michal Schmidt wrote: Was the timer unit active? What does systemctl status yourunit.timer show? I think, this is a good hint, systemctl status innd-expire.timer told me something like Active: inactive... After I have done a # systemctl start

Re: Start of systemd timers after install/update of a package

2013-01-24 Thread Jóhann B. Guðmundsson
On 01/24/2013 04:28 PM, Bill Nottingham wrote: Tomas Mraz (tm...@redhat.com) said: On Thu, 2013-01-24 at 16:03 +0100, Jochen Schmitt wrote: Hello, I have tried to migrating the cron jobs of the inn package to systemd timers. Unfortunately, I have got the following problem. After a

Re: Start of systemd timers after install/update of a package

2013-01-24 Thread Jóhann B. Guðmundsson
On 01/24/2013 05:31 PM, Jochen Schmitt wrote: On Thu, Jan 24, 2013 at 04:53:01PM +0100, Michal Schmidt wrote: Was the timer unit active? What does systemctl status yourunit.timer show? I think, this is a good hint, systemctl status innd-expire.timer told me something like Active: inactive...

Re: Start of systemd timers after install/update of a package

2013-01-24 Thread Matthew Miller
On Thu, Jan 24, 2013 at 05:30:52PM +, Jóhann B. Guðmundsson wrote: What surprised me the most was that none of those components packages depended on cron which was the same thing with rsyslog when I looked into that which is what I expected they would do. Maybe it's just me but is there

Re: Start of systemd timers after install/update of a package

2013-01-24 Thread Jóhann B. Guðmundsson
On 01/24/2013 05:41 PM, Matthew Miller wrote: On Thu, Jan 24, 2013 at 05:30:52PM +, Jóhann B. Guðmundsson wrote: What surprised me the most was that none of those components packages depended on cron which was the same thing with rsyslog when I looked into that which is what I expected they

Re: Start of systemd timers after install/update of a package

2013-01-24 Thread Matthew Miller
On Thu, Jan 24, 2013 at 06:38:35PM +, Jóhann B. Guðmundsson wrote: Maybe it's just me but is there not something more broken/alarming with that or is just me and this is just acceptable from packaging standpoint? Generally, the packages function without cron, so including a hard

Re: Start of systemd timers after install/update of a package

2013-01-24 Thread Lennart Poettering
On Thu, 24.01.13 16:03, Jochen Schmitt (joc...@herr-schmitt.de) wrote: Hello, I have tried to migrating the cron jobs of the inn package to systemd timers. Unfortunately, I have got the following problem. After a install/update of the package the timer will only start the service unit only

Re: Start of systemd timers after install/update of a package

2013-01-24 Thread Michael Scherer
Le jeudi 24 janvier 2013 à 17:30 +, Jóhann B. Guðmundsson a écrit : On 01/24/2013 04:28 PM, Bill Nottingham wrote: Tomas Mraz (tm...@redhat.com) said: On Thu, 2013-01-24 at 16:03 +0100, Jochen Schmitt wrote: Hello, I have tried to migrating the cron jobs of the inn package to

Re: Start of systemd timers after install/update of a package

2013-01-24 Thread Adam Williamson
On Thu, 2013-01-24 at 17:30 +, Jóhann B. Guðmundsson wrote: On 01/24/2013 04:28 PM, Bill Nottingham wrote: Tomas Mraz (tm...@redhat.com) said: On Thu, 2013-01-24 at 16:03 +0100, Jochen Schmitt wrote: Hello, I have tried to migrating the cron jobs of the inn package to systemd