Re: [systemd-devel] systemd + ExecStart + python script

2013-11-19 Thread Abdelghani Ouchabane
On 18/11/13 19:24, Zbigniew Jędrzejewski-Szmek wrote: On Mon, Nov 18, 2013 at 05:56:47PM +0100, Abdelghani Ouchabane wrote: From my understanding I can combine PathChanged & PathExists but it did not work for me. They must be *both* satisfied. I you want the unit to start when *either

Re: [systemd-devel] systemd + ExecStart + python script

2013-11-18 Thread Abdelghani Ouchabane
On 12/11/13 18:40, Zbigniew Jędrzejewski-Szmek wrote: On Tue, Nov 12, 2013 at 06:14:30PM +0100, Abdelghani Ouchabane wrote: On 11/11/13 17:32, Zbigniew Jędrzejewski-Szmek wrote: On Mon, Nov 11, 2013 at 04:55:05PM +0100, Abdelghani Ouchabane wrote: ExecStart=/usr/bin/python /opt/cyclades/bin

Re: [systemd-devel] Path unit configuration starts early (DefaultDependencies=no)

2013-11-13 Thread Abdelghani Ouchabane
On 11/11/13 18:23, Zbigniew Jędrzejewski-Szmek wrote: On Mon, Nov 11, 2013 at 05:50:51PM +0100, Abdelghani Ouchabane wrote: On 11/11/13 17:35, Zbigniew Jędrzejewski-Szmek wrote: On Mon, Nov 11, 2013 at 05:26:28PM +0100

Re: [systemd-devel] systemd + ExecStart + python script

2013-11-12 Thread Abdelghani Ouchabane
On 11/11/13 17:32, Zbigniew Jędrzejewski-Szmek wrote: On Mon, Nov 11, 2013 at 04:55:05PM +0100, Abdelghani Ouchabane wrote: ExecStart=/usr/bin/python /opt/cyclades/bin/t_idl.pyo |-1377 /bin/sh -c if [ ! -e /home/x/taskconfig/screensaver ]; then /bin/mkdir -p /home/x/taskconfig

Re: [systemd-devel] systemd + ExecStart + python script

2013-11-11 Thread Abdelghani Ouchabane
On 11/11/13 17:32, Zbigniew Jędrzejewski-Szmek wrote: On Mon, Nov 11, 2013 at 04:55:05PM +0100, Abdelghani Ouchabane wrote: ExecStart=/usr/bin/python /opt/cyclades/bin/t_idl.pyo |-1377 /bin/sh -c if [ ! -e /home/x/taskconfig/screensaver ]; then /bin/mkdir -p /home/x/taskconfig

Re: [systemd-devel] Path unit configuration starts early (DefaultDependencies=no)

2013-11-11 Thread Abdelghani Ouchabane
On 11/11/13 17:35, Zbigniew Jędrzejewski-Szmek wrote: On Mon, Nov 11, 2013 at 05:26:28PM +0100, Abdelghani Ouchabane wrote: Hallo, I have two configuration files: ezono-cyclades-t_upn.path & ezono-cyclades-t_upn.service Where: ezono-cyclades-t_upn.path : [Unit] Description=ezono-cycl

[systemd-devel] Path unit configuration starts early (DefaultDependencies=no)

2013-11-11 Thread Abdelghani Ouchabane
Hallo, I have two configuration files: ezono-cyclades-t_upn.path & ezono-cyclades-t_upn.service Where: ezono-cyclades-t_upn.path : [Unit] Description=ezono-cyclades-t_upn Service Spool DefaultDependencies=no Conflicts=shutdown.target Before=shutdown.target [Path] PathExists=/tmp/cyclades/

[systemd-devel] systemd + ExecStart + python script

2013-11-11 Thread Abdelghani Ouchabane
Hallo, I have two systemd files: ezono-cyclades-t_idl.path & ezono-cyclades-t_idl.service ( I am using systemd 204 ), xxx.path triggers .service And I am launching the main program as: ExecStart=/usr/bin/python /opt/cyclades/bin/t_idl.pyo Or ExecStart=/usr/bin/python /opt/cyclades/bi