Re: [systemd-devel] Timers without matching units?

2014-10-22 Thread Zbigniew Jędrzejewski-Szmek
On Wed, Oct 22, 2014 at 02:50:13PM +0400, Ivan Shapovalov wrote:
 Hi,
 
 The systemd.timer(5) manpage states:
 
 For each timer file, a matching unit file must exist, describing the unit to
 activate when the timer elapses.
 
 However, if I need the timer unit just to wake up the machine (e. g. I have a
 GUI alarm which does everything except configuring the wakealarm), I don't
 need the timer unit to start something else. Does this sound like a valid
 reason to make timers' Unit= optional?
Hi,

yeah, when timers were implemented, this wasn't possible, but now
it makes sense and would be useful.

Zbyszek
___
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/systemd-devel


Re: [systemd-devel] Timers without matching units?

2014-10-22 Thread Lennart Poettering
On Wed, 22.10.14 14:05, Zbigniew Jędrzejewski-Szmek (zbys...@in.waw.pl) wrote:

 On Wed, Oct 22, 2014 at 02:50:13PM +0400, Ivan Shapovalov wrote:
  Hi,
  
  The systemd.timer(5) manpage states:
  
  For each timer file, a matching unit file must exist, describing the unit 
  to
  activate when the timer elapses.
  
  However, if I need the timer unit just to wake up the machine (e. g. I have 
  a
  GUI alarm which does everything except configuring the wakealarm), I don't
  need the timer unit to start something else. Does this sound like a valid
  reason to make timers' Unit= optional?
 Hi,
 
 yeah, when timers were implemented, this wasn't possible, but now
 it makes sense and would be useful.

I added this to the TODO list for now.

Lennart

-- 
Lennart Poettering, Red Hat
___
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/systemd-devel


Re: [systemd-devel] Timers without matching units?

2014-10-22 Thread Cristian Rodríguez
El 22/10/14 a las #4, Ivan Shapovalov escribió:
 Hi,
 
 The systemd.timer(5) manpage states:
 
 For each timer file, a matching unit file must exist, describing the unit to
 activate when the timer elapses.
 

I guess for now you can create a dummy unit that executes /bin/true to
workaround this limitation. ;-)



___
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/systemd-devel