diff options
author | Lee Duncan <lduncan@suse.com> | 2022-03-20 16:12:40 -0700 |
---|---|---|
committer | Lee Duncan <lduncan@suse.com> | 2022-03-20 16:12:40 -0700 |
commit | fd14dd8316b1317d3ee2ff28b9d013198be40d70 (patch) | |
tree | 285dc501850dd360dbd88dca962ec96059213ca8 /etc/systemd/iscsiuio.service.template | |
parent | f64890f2b90b53389e528559115a726072f71844 (diff) | |
download | open-iscsi-fd14dd8316b1317d3ee2ff28b9d013198be40d70.tar.gz |
Clean up Makefile build system.
A major overdue overhaul of the Make layout, including
moving lots of lower-level things out of the top-level
Makefile into the Makefiles for the appropriate subdirectory,
renaming the template files (where @SBINDIR@ gets translated)
so that their purpose is more obvious, making the build more
idempotent (no need to install a file if it's not newer).
Should be no functional change, as no script or C file changed.
Main difference from before: now the udev rules gets made and
installed by default (as part of "make"/"make install"), and
the iscsiuio daemon is now installed for "make install".
One should now be able to go into any subdirectory and type
"make"/"make install" to build and install the targets from
that directory, at least for the etc, utils, and usr
subdirectories.
This change is in preparation for more template translations
coming.
Diffstat (limited to 'etc/systemd/iscsiuio.service.template')
-rw-r--r-- | etc/systemd/iscsiuio.service.template | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/etc/systemd/iscsiuio.service.template b/etc/systemd/iscsiuio.service.template new file mode 100644 index 0000000..2e721fe --- /dev/null +++ b/etc/systemd/iscsiuio.service.template @@ -0,0 +1,20 @@ +[Unit] +Description=iSCSI UserSpace I/O driver +Documentation=man:iscsiuio(8) +DefaultDependencies=no +Conflicts=shutdown.target +Requires=iscsid.service +BindTo=iscsid.service +After=network.target +Before=remote-fs-pre.target iscsid.service +Wants=remote-fs-pre.target + +[Service] +Type=notify +NotifyAccess=main +ExecStart=@SBINDIR@/iscsiuio -f +KillMode=mixed +Restart=on-failure + +[Install] +WantedBy=multi-user.target |