Re: [systemd-devel] clarification on daemon-reload

2015-05-17 Thread Alexandre Detiste
e the try-restart; if it's not there, as this .service file doesn't exist anymore; the try-restart is never run. It's ugly, but it works reliably. Alexandre Detiste ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/systemd-devel

Re: [systemd-devel] How to properly write an "umbrella" unit

2015-07-21 Thread Alexandre Detiste
Le mardi 21 juillet 2015, 13:43:48 Marc Haber a écrit : > This works as designed. Unfortunately, my Distribution's build tools > don't handle package-provided targets too well, and I feel that using > a target here is kind of wrong anyway. Hi, Package-provided targets works well, but by default d

Re: [systemd-devel] Shutdown root fs on loop device

2016-04-22 Thread Alexandre Detiste
Or use a wrapper. #include #include int main(int argc, char *argv[]) { argv[0] = "@ntfs-3g"; execv("/usr/bin/ntfs-3g", argv); perror("ntfs-3g-wrapper"); return 1; 2016-04-22 13:02 GMT+02:00 Tomasz Torcz : > On Fri, Apr 22, 2016 at 11:49:09AM +0200, Michael Lipp

Re: [systemd-devel] idle daemon sleep

2014-12-30 Thread Alexandre Detiste
Le mercredi 31 décembre 2014, 08:23:51 Mantas Mikulėnas a écrit : > Even for .timer units, systemd simply sleeps until it's actually time > for the next event – like cron, or Task Scheduler for that matter. > There shouldn't be any "is it time yet?". In fact, many people complain that cron does wa

Re: [systemd-devel] Systemd.timer: Possibility to execute job hourly between 6 am and 6 pm.

2015-01-16 Thread Alexandre Detiste
Hi, You have to explicitly state each hour: 6,7,8,9,10,11,12,13,14,15,16,17,18:00:00 . Alexandre Detiste 2015-01-16 12:38 GMT+01:00 Kris Erik Schwerdt : > Hello, > > I was just trying to replace some cron-jobs by systemd-timers. I'm using > system 218 on archlinux. During doin

Re: [systemd-devel] directive for executing a script on service failure

2015-02-06 Thread Alexandre Detiste
Le vendredi 6 février 2015, 21:23:14 Mantas Mikulėnas a écrit : > On Fri, Feb 6, 2015 at 5:26 PM, George Karakougioumtzis < > mad-proffes...@hotmail.com> wrote: > > > Hi. Congrats for the near perfect job on systemd! I was searching for a > > directive to execute a script upon systemd service fail

Re: [systemd-devel] DBus api of systemd user instance

2015-03-07 Thread Alexandre Detiste
Hi Ragnar, I found out and published answer on your Github bug tracker https://github.com/rthomsen/kcmsystemd/issues/17 . It seems as simple a using Qt's buitlin "QDBusConnection::sessionBus()" (qdbusviewer does that). Alexandre Le samedi 7 mars 2015, 08:45:42 Mantas Mikulėnas a écrit : > On

[systemd-devel] need sponsor for systemd-cron

2015-04-28 Thread Alexandre Detiste
Hi, I need a sponsor to upload an update of this package. Development has pretty much staled (both in Debian package & upstream), as this is a rather empty shell that lets systemd do all the hard , and it is pretty much "done". Cheers, https://anonscm.debian.org/cgit/collab-maint/systemd-cron.g

Re: [systemd-devel] need sponsor for systemd-cron

2015-04-28 Thread Alexandre Detiste
sorry, sent to wrong list !! 2015-04-28 12:39 GMT+02:00 Alexandre Detiste : > I need a sponsor to upload an update of this package. ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/syst

[systemd-devel] systemd-cron: retrigger generator after /var is mounted

2014-10-22 Thread Alexandre Detiste
on/blob/master/src/units/cron-update.service.in --- https://github.com/systemd-cron/systemd-cron/issues/12 - ) if a lenghty weekly/monthly/yearly persistent job is aborted by a shutdown, it is not restarted on next reboot. --- Alexandre Detiste ___ systemd-dev

Re: [systemd-devel] systemd-cron: retrigger generator after /var is mounted

2014-10-22 Thread Alexandre Detiste
> > -) how can I trigger a rerun of the generator > > generators are rerun if you issue "systemctl daemon-reload" I already know, this is what our "trigger unit" does. https://github.com/systemd-cron/systemd-cron/blob/master/src/units/cron-update.service.in https://github.com/systemd-cron/syst

Re: [systemd-devel] systemd-cron: retrigger generator after /var is mounted

2014-10-22 Thread Alexandre Detiste
> Or to put this differently we will not create. come up with, ship ( and > thus support those ) generators but expect consumers of systemd to use > systemd and it's format natively in their environment. > > Alexandre why did you decide to write that generate to begin with? Hi, I've been usi

Re: [systemd-devel] systemd-cron: retrigger generator after /var is mounted

2014-10-22 Thread Alexandre Detiste
st be handled by the > traditional cron daemons since those two components complement each > others shortcomings ? "The rest" ? The generator can now handle all possible cases; it just doesn't send emails like cron; but that will remain an wontfix I guess. Alexandre Detiste ___

Re: [systemd-devel] systemd-cron: retrigger generator after /var is mounted

2014-10-22 Thread Alexandre Detiste
>Why not migrate what needs to be migrated to native system timer formats This would be the responsability of each individual package manager; after some policy would have mandated it and it's too late before the release freeze. Debian only ships exaclty one timer now: systemd-tmpfiles-clean.time

Re: [systemd-devel] transforming Iptables bash script to systemd service file -help

2014-10-23 Thread Alexandre Detiste
>2014-10-22 13:37 GMT+02:00 Simon McVittie : > all it would need is for systemd to support StandardInput=/a/file/path That feature would be nice. I have a direct use for this. Doing '/bin/echo -e line1\\nline2\\nline3 | command' is ugly. https://github.com/systemd-cron/systemd-cron/blob/master/sr

[systemd-devel] systemctl show environment quoting

2014-10-29 Thread Alexandre Detiste
27;t hurt, but this may causes security problems elsewhere. Alexandre Detiste ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/systemd-devel

Re: [systemd-devel] systemd-cron: retrigger generator after /var is mounted

2014-10-29 Thread Alexandre Detiste
Le mercredi 22 octobre 2014, 13:07:39 Lennart Poettering a écrit : >So, I thought myself a couple of times about adding a cron generator >upstream, but always came to the conclusion that having to load the >configuration **twice** during boot-up would be suboptimal. > Well, you can order your rel

[systemd-devel] generator logging during daemon-reload

2014-11-07 Thread Alexandre Detiste
Hi, I know that generators should log to /dev/kmsg during early boot. But, when they are restarted later by systemcl daemon-reload; is it better to write to the journal instead, by using systemd-cat for example ? Or is it racy/forbidden ? Greetings, Alexandre Detiste

Re: [systemd-devel] generator logging during daemon-reload

2014-11-10 Thread Alexandre Detiste
temctl try-restart cron.target" https://github.com/systemd-cron/systemd-cron/blob/master/src/bin/systemd-crontab-generator#L471 > Generators really really shouldn't talk to any other services, and > this means for logging they should log to /dev/kmsg or suchl

Re: [systemd-devel] generator logging during daemon-reload

2014-11-10 Thread Alexandre Detiste
>> Yes, but then the log appears as a ugly big chunck without the >> timestamp & host on the left; > > except the first line. Is it ok to reopen /dev/ksmg for each line > > writen to avoid this ? > > Not sure I follow? This might be a trivial problem; it's just that there are really few people w

Re: [systemd-devel] systemctl show environment quoting

2014-11-11 Thread Alexandre Detiste
s > awful if env vars really contain spaces... I guess from the man page this fits nicely with the spirit of this sub-command. e.g. : display of ExecStart= that looks like a JSON thingy. Alexandre Detiste ___ systemd-devel mailing list systemd-d

Re: [systemd-devel] [PATCH v2 2/2] update TODO

2014-11-20 Thread Alexandre Detiste
Hi, > What's the usecase for setting empty environment variables? > > JBG I use it to pass along information in my generator: "Environment=MAILTO=" means "don't send any mail in case of failure". By the default the mail would be sent the to @localhost . The support for this is already there,

Re: [systemd-devel] [PATCH] systemctl: print unit package in status

2014-12-18 Thread Alexandre Detiste
Hi, You could maybe think of adding some "Package=" ou "SourcePackage=" attribute in units to let users known where this unit came from. This would work like "SourcePath=" does for generated units. Alexandre Detiste 2014-12-18 10:08 GMT+01:00 "Jóhann B. Guð