Re: Need help with systemd service files

2012-02-28 Thread Michal Schmidt
On 02/26/2012 07:37 AM, Garrett Holmstrom wrote: On 2012-02-24 4:22, Juerg Haefliger wrote: So I installed the official Fedora version of cloud-init but the service startup ordering is broken there too: [root@342 ~]# dmesg | grep cloud | grep About [ 91.668396] systemd[1]: About to execute:

Re: Need help with systemd service files

2012-02-28 Thread Juerg Haefliger
On Tue, Feb 28, 2012 at 12:02 PM, Michal Schmidt mschm...@redhat.com wrote: On 02/26/2012 07:37 AM, Garrett Holmstrom wrote: On 2012-02-24 4:22, Juerg Haefliger wrote: So I installed the official Fedora version of cloud-init but the service startup ordering is broken there too: [root@342

Re: Need help with systemd service files

2012-02-28 Thread Garrett Holmstrom
On Feb 28, 2012 6:12 AM, Juerg Haefliger jue...@gmail.com wrote: [ 92.376121] systemd[1]: cloud-init-local.service changed start - failed Of interest here is the fact that the script that cloud-init-local.service runs currently has a bug that causes it to return the wrong return code. Since

Re: Need help with systemd service files

2012-02-28 Thread Michal Schmidt
Dne 28.2.2012 17:23, Garrett Holmstrom napsal(a): Of interest here is the fact that the script that cloud-init-local.service runs currently has a bug that causes it to return the wrong return code. Since cloud-init.target Requires that service (cloud-config.service does not function correctly

Re: Need help with systemd service files

2012-02-25 Thread Garrett Holmstrom
On 2012-02-24 4:22, Juerg Haefliger wrote: So I installed the official Fedora version of cloud-init but the service startup ordering is broken there too: [root@342 ~]# dmesg | grep cloud | grep About [ 91.668396] systemd[1]: About to execute: /usr/bin/cloud-init start-local [ 91.993238]

Re: Need help with systemd service files

2012-02-24 Thread Juerg Haefliger
2012/2/23 Michal Schmidt mschm...@redhat.com: On 02/23/2012 03:35 PM, Juerg Haefliger wrote: All services have an [install] section, I just dropped them for this email. Forgot to pull in C.target where? Should D.service contain After=rc-local.service C.target then? By pull in I mean making

Re: Need help with systemd service files

2012-02-24 Thread Michal Schmidt
On 02/24/2012 01:22 PM, Juerg Haefliger wrote: Hmm... So I fail to see the difference between After and Wants then. What's the difference between ordering and requirement dependencies? See this explanation of the orthogonality of ordering and requirement dependencies by Lennart:

Need help with systemd service files

2012-02-23 Thread Juerg Haefliger
Hi, I want to create a package for Fedora 16 but I'm struggling with the systemd service/target files. I cannot get the various services to execute in the right order. I have 4 services (they're actually scripts that just execute and terminate) that need to run in the order described below. Any

Re: Need help with systemd service files

2012-02-23 Thread Michal Schmidt
Hello, On 02/23/2012 01:34 PM, Juerg Haefliger wrote: Any of the services could fail but that shouldn't affect any of the other services. From this you can deduce the answer to one of your questions. You don't want to use Requires then. 1) Service A after the local filesystem is mounted. 2)

Re: Need help with systemd service files

2012-02-23 Thread Juerg Haefliger
Hi Michal, Hello, On 02/23/2012 01:34 PM, Juerg Haefliger wrote: Any of the services could fail but that shouldn't affect any of the other services. From this you can deduce the answer to one of your questions. You don't want to use Requires then. Ok. 1) Service A after the local

Re: Need help with systemd service files

2012-02-23 Thread Michal Schmidt
On 02/23/2012 03:35 PM, Juerg Haefliger wrote: All services have an [install] section, I just dropped them for this email. Forgot to pull in C.target where? Should D.service contain After=rc-local.service C.target then? By pull in I mean making it included in the transaction. Ordering