On 08/19/2011 03:39 PM, Steve Grubb wrote:
> We need a way to specify in the service init files which targets the service 
> is allowed
> to run in by default.

You do that in the install section of the unit file

[Install]
WantedBy=$foo.target

So basically all desktop related service should only have...

[Install]
WantedBy=graphical.target

And all server services should have

[Install]
WantedBy=multi-user.target

All systemd critical function services

  [Install]
WantedBy=basic.target

etc..

JBG
-- 
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel

Reply via email to