Re: [systemd-devel] Restart and RestartSec in packaged .service files

2011-09-20 Thread Reindl Harald
Am 01.09.2011 16:25, schrieb Lennart Poettering: > if i say "Restart=always" i want a mail if this happens > not a own unit-file write a unit file that sends a mail, something like this: send-mail-on-failure@.service: [Unit] Description=Send mail on failure of %I [Service] ExecStart=/path/to/

Re: [systemd-devel] Restart and RestartSec in packaged .service files

2011-09-07 Thread Ole Laursen
Lennart Poettering poettering.net> writes: > > I was wondering if there is some kind of guideline about whether > > packaged .service files in Fedora, etc. should specify Restart=, > > RestartSec=, etc. [...] > There's currently no policy on this, but I generally do believe it would > make a lot o

Re: [systemd-devel] Restart and RestartSec in packaged .service files

2011-09-01 Thread Jóhann B. Guðmundsson
On 09/01/2011 07:45 PM, Lennart Poettering wrote: On Thu, 01.09.11 16:03, "Jóhann B. Guðmundsson" (johan...@gmail.com) wrote: On 09/01/2011 02:13 PM, Lennart Poettering wrote: We currently store information about crashes in syslog, which is however not really that helpful. I do believe howeve

Re: [systemd-devel] Restart and RestartSec in packaged .service files

2011-09-01 Thread Lennart Poettering
On Thu, 01.09.11 16:03, "Jóhann B. Guðmundsson" (johan...@gmail.com) wrote: > > On 09/01/2011 02:13 PM, Lennart Poettering wrote: > >We currently store information about crashes in syslog, which is however > >not really that helpful. > > > >I do believe however that we really need to work towards

Re: [systemd-devel] Restart and RestartSec in packaged .service files

2011-09-01 Thread Reindl Harald
Am 01.09.2011 18:03, schrieb "Jóhann B. Guðmundsson": > Timer units along with check units ( having native check units which would > connect to service ports/sockets would > be really nice ) can monitor those daemons and restart the service if it > does not respond ( sometimes daemons end > u

Re: [systemd-devel] Restart and RestartSec in packaged .service files

2011-09-01 Thread Jóhann B. Guðmundsson
On 09/01/2011 02:13 PM, Lennart Poettering wrote: We currently store information about crashes in syslog, which is however not really that helpful. I do believe however that we really need to work towards the direction that we can auto-respawn services where this makes sense by default and have

Re: [systemd-devel] Restart and RestartSec in packaged .service files

2011-09-01 Thread Lennart Poettering
On Thu, 01.09.11 16:25, Lennart Poettering (lenn...@poettering.net) wrote: > > On Thu, 01.09.11 13:07, Reindl Harald (h.rei...@thelounge.net) wrote: > > > > and at the same time take other action like potentially trigger abrt to > > > send bug report or > > > revert changes and restart the dae

Re: [systemd-devel] Restart and RestartSec in packaged .service files

2011-09-01 Thread Lennart Poettering
On Thu, 01.09.11 13:07, Reindl Harald (h.rei...@thelounge.net) wrote: > > and at the same time take other action like potentially trigger abrt to > > send bug report or > > revert changes and restart the daemon etc. as opposed to pipe a simple mail > > notification > > to root and systemd prov

Re: [systemd-devel] Restart and RestartSec in packaged .service files

2011-09-01 Thread Lennart Poettering
On Thu, 01.09.11 11:06, "Jóhann B. Guðmundsson" (johan...@gmail.com) wrote: > > On 09/01/2011 10:02 AM, Mathieu Bridon wrote: > >Let's say you want to add Restart=always to foobar.service, waht you'd > >do is: > > 1. edit /etc/systemd/system/foobar.service (to overwrite the /lib one) > > 2. w

Re: [systemd-devel] Restart and RestartSec in packaged .service files

2011-09-01 Thread Lennart Poettering
On Thu, 01.09.11 11:42, Reindl Harald (h.rei...@thelounge.net) wrote: > > These options along with bunch of other once is something that Admins > > should put in themselves and with my admin > > hat on it simply is not enough just to add Restart=, RestartSec because you > > do want to get notifi

Re: [systemd-devel] Restart and RestartSec in packaged .service files

2011-09-01 Thread Lennart Poettering
On Thu, 01.09.11 09:37, "Jóhann B. Guðmundsson" (johan...@gmail.com) wrote: > > On 09/01/2011 09:19 AM, Albert Strasheim wrote: > >Hello all > > > >I was wondering if there is some kind of guideline about whether > >packaged .service files in Fedora, etc. should specify Restart=, > >RestartSec=,

Re: [systemd-devel] Restart and RestartSec in packaged .service files

2011-09-01 Thread Lennart Poettering
On Thu, 01.09.11 11:19, Albert Strasheim (full...@gmail.com) wrote: > Hello all > > I was wondering if there is some kind of guideline about whether > packaged .service files in Fedora, etc. should specify Restart=, > RestartSec=, etc. > > Most of the system services shipped with Fedora are quit

Re: [systemd-devel] Restart and RestartSec in packaged .service files

2011-09-01 Thread Reindl Harald
first see my attached examples of a per-minute cronjob with its config-file this works perfectly since years, with F15 this works NOT the same way because a forced restart per shell would not be recognized, a reboot would not be recognized and since "systemctl" gives NO FEEDBACK the so generated ma

Re: [systemd-devel] Restart and RestartSec in packaged .service files

2011-09-01 Thread Jóhann B. Guðmundsson
On 09/01/2011 11:07 AM, Reindl Harald wrote: Am 01.09.2011 12:48, schrieb "Jóhann B. Guðmundsson": On 09/01/2011 09:42 AM, Reindl Harald wrote: yes and that is why "systemd" should generate a notify-mail to root as self-written scripts are doing since years so they could be really replaced wit

Re: [systemd-devel] Restart and RestartSec in packaged .service files

2011-09-01 Thread Reindl Harald
Am 01.09.2011 12:48, schrieb "Jóhann B. Guðmundsson": > On 09/01/2011 09:42 AM, Reindl Harald wrote: >> yes and that is why "systemd" should generate a notify-mail to root as >> self-written scripts are doing since years so they could be really >> replaced with systemd - the silent restart is a u

Re: [systemd-devel] Restart and RestartSec in packaged .service files

2011-09-01 Thread Jóhann B. Guðmundsson
On 09/01/2011 10:02 AM, Mathieu Bridon wrote: Let's say you want to add Restart=always to foobar.service, waht you'd do is: 1. edit /etc/systemd/system/foobar.service (to overwrite the /lib one) 2. write this in the file: .include /lib/systemd/system/foobar.service Restart=alw

Re: [systemd-devel] Restart and RestartSec in packaged .service files

2011-09-01 Thread Jóhann B. Guðmundsson
On 09/01/2011 09:42 AM, Reindl Harald wrote: yes and that is why "systemd" should generate a notify-mail to root as self-written scripts are doing since years so they could be really replaced with systemd - the silent restart is a unfinished thought Again with my admin hat it should not it. It

Re: [systemd-devel] Restart and RestartSec in packaged .service files

2011-09-01 Thread Mathieu Bridon
On Thu, 2011-09-01 at 11:50 +0200, Reindl Harald wrote: > > Am 01.09.2011 11:45, schrieb Jan Willies: > > 2011/9/1 Reindl Harald > > > > > > also having the restart-options but no way to set them without > > override the whole .service file is simply a unfi

Re: [systemd-devel] Restart and RestartSec in packaged .service files

2011-09-01 Thread Reindl Harald
Am 01.09.2011 11:45, schrieb Jan Willies: > 2011/9/1 Reindl Harald > > > also having the restart-options but no way to set them without > override the whole .service file is simply a unfinished design > > That's not true. You can include the original serv

Re: [systemd-devel] Restart and RestartSec in packaged .service files

2011-09-01 Thread Jan Willies
2011/9/1 Reindl Harald > also having the restart-options but no way to set them without > override the whole .service file is simply a unfinished design > That's not true. You can include the original service file and just add/overwrite your specific settings. ___

Re: [systemd-devel] Restart and RestartSec in packaged .service files

2011-09-01 Thread Reindl Harald
Am 01.09.2011 11:37, schrieb "Jóhann B. Guðmundsson": > On 09/01/2011 09:19 AM, Albert Strasheim wrote: >> Hello all >> >> I was wondering if there is some kind of guideline about whether >> packaged .service files in Fedora, etc. should specify Restart=, >> RestartSec=, etc. >> >> Most of the sy

Re: [systemd-devel] Restart and RestartSec in packaged .service files

2011-09-01 Thread Jóhann B. Guðmundsson
On 09/01/2011 09:19 AM, Albert Strasheim wrote: Hello all I was wondering if there is some kind of guideline about whether packaged .service files in Fedora, etc. should specify Restart=, RestartSec=, etc. Most of the system services shipped with Fedora are quite stable, but it might be could t

[systemd-devel] Restart and RestartSec in packaged .service files

2011-09-01 Thread Albert Strasheim
Hello all I was wondering if there is some kind of guideline about whether packaged .service files in Fedora, etc. should specify Restart=, RestartSec=, etc. Most of the system services shipped with Fedora are quite stable, but it might be could to have Restarts in place for services that crash o