Re: [systemd-devel] Non-target, dependency-only unit

2012-01-16 Thread Jóhann B. Guðmundsson
On 01/16/2012 06:54 PM, Pablo Hess wrote: Yes, this unit file is a simple solution, but I was looking for something with more of a native approach. If you want anything more native than that then create spacewalk.target then create a separated unit for each of the services with conflicts to t

Re: [systemd-devel] Non-target, dependency-only unit

2012-01-16 Thread Pablo Hess
> [Service] > Type=oneshot > ExecStart=/usr/sbin/spacewalk-service start > ExecReload=/usr/sbin/spacewalk-service reload > ExecStop=/usr/sbin/spacewalk-service stop > RemainAfterExit=yes Thank you, Jóhann. Yes, this unit file is a simple solution, but I was looking for something with more of a na

Re: [systemd-devel] Non-target, dependency-only unit

2012-01-16 Thread Jóhann B. Guðmundsson
On 01/16/2012 05:00 PM, Pablo Nehab Hess wrote: I'm trying to convert Spacewalk's init script to a systemd unit file. Spacewalk is merely a collection of dependencies; it depends on {httpd,tomcat6,postgresql}.service and a few others, but there's no proper daemon or any such thing. The original

[systemd-devel] Non-target, dependency-only unit

2012-01-16 Thread Pablo Nehab Hess
I'm trying to convert Spacewalk's init script to a systemd unit file. Spacewalk is merely a collection of dependencies; it depends on {httpd,tomcat6,postgresql}.service and a few others, but there's no proper daemon or any such thing. The original init script lives at '/usr/sbin/spacewalk-service'