On Tue, Apr 15, 2014 at 08:46:56AM -0400, Robert Schweikert wrote:
On 04/15/2014 06:16 AM, Ralf Haferkamp wrote:
Hi,
with systemd we nowadays handle enabling services by default via the systemd-preset-* packages. But AFAICS this really only handles automatic enablement of the service (== systemctl enable). The service are still not running after that. For that I still need to either reboot a call systemctl start manually. Is that really the expected behavior? If yes, what is the correct way to automatically have a service started after installation.
Currently I am looking at open-iscsi which has iscsid.socket and iscsi.service listed in /usr/lib/systemd/system-preset/90-default-openSUSE.preset. Both are correctly enable after installation, but only started after reboot.
The systemd packaging guidelines should have the answer
http://en.opensuse.org/openSUSE:Systemd_packaging_guidelines
I agree they should, but currently they don't have the answer :), unless I am completely overlooking something. The wiki page documents the systemd related macros and how the preset file is supposed to be used. But as written above, iscsid.socket is already present in the preset file and the iscsid.socket is correctly enabled after installing the package. It's just not started. For that to happen I still need to call systemctl start iscsid.socket manually (or reboot). And probably that even is how it all is supposed to work, I am just not sure, that why asking. -- Ralf -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org