Am 2015-01-25 16:47, schrieb Christian Seiler:
Btw. I noticed a small problem with my fix w.r.t open-iscsi here: my
fix currently does not cover the iscsi alias (Provides line in LSB
header), so on systemd systems (sysvinit is not affected) with my
fix,
anything ordered against iscsi will not order properly against my
unit
file. (Note that multipath-tools.service orders against iscsi, but in
this case, it is not actually the root cause.)
So before you upload the fix for open-iscsi, could you give me a
little more time to see how to make sure the alias continues working,
so that other scripts that want to order against iscsi still do that
with systemd?
Yup, found + tested it, it's actually really simple:
Just add
Alias=iscsi.service
to the [Install] section of the open-iscsi.service unit.
So basically it now reads:
------------------------------------------------------------------
[Unit]
Description=iSCSI initiator
DefaultDependencies=no
Before=sysinit.target shutdown.target remote-fs-pre.target
After=network-online.target
Wants=network-online.target
Conflicts=shutdown.target
[Service]
Type=forking
Restart=no
TimeoutSec=0
GuessMainPID=no
IgnoreSIGPIPE=no
ExecStartPre=/usr/share/open-iscsi/startup-sanitychecks
ExecStart=/usr/sbin/iscsid
ExecStartPost=/usr/bin/iscsiadm -m node --loginall=automatic
ExecStartPost=-/sbin/udevadm settle
ExecStartPost=/usr/share/open-iscsi/change-lvm y
ExecStop=/usr/share/open-iscsi/change-lvm n
ExecStop=/bin/sync
ExecStop=/usr/bin/iscsiadm -m node --logoutall=all
[Install]
WantedBy=multi-user.target
Alias=iscsi.service
------------------------------------------------------------------
(last line is new)
Then stuff ordering against iscsi will work properly, so the fix
is complete now.
I'm not sending a new debdiff since this is trivial.
Christian
PS: Could you CC me on the freeze exception request? Thanks!
--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org