[Lunar-commits] <moonbase-other> open-iscsi: Added systemd service file
Stefan Wold
ratler at lunar-linux.org
Wed Aug 1 12:36:03 CEST 2012
commit 68bfb7378f044a8482685d30ccb6177b7f531d6d
Author: Stefan Wold <ratler at lunar-linux.org>
Date: Wed, 01 Aug 2012 03:36:03 -0700
URL: https://github.com/lunar-linux/moonbase-other/commit/68bfb7378f044a8482685d30ccb6177b7f531d6d
open-iscsi: Added systemd service file
---
net/open-iscsi/systemd.d/#open-iscsi.service# +0/-6
net/open-iscsi/systemd.d/open-iscsi.service +13/-0
2 files changed, 13 insertions (+), 6 deletions (-)
--- a/net/open-iscsi/systemd.d/#open-iscsi.service#
+++ /dev/null
@@ -1,6 +0,0 @@
-[Unit]
-Description=Open-iSCSI Service
-After=network.target
-Before=local-fs.target
-
-[Service]
--- /dev/null
+++ b/net/open-iscsi/systemd.d/open-iscsi.service
@@ -0,0 +1,13 @@
+[Unit]
+Description=Open-iscsi Service Daemon
+After=network.target
+
+[Service]
+Type=forking
+ExecStartPre=/sbin/modprobe -a libiscsi scsi_transport_iscsi iscsi_tcp
+ExecStart=/sbin/iscsid -c /etc/iscsi/iscsid.conf -i /etc/iscsi/initiatorname.iscsi
+ExecStartPost=/sbin/iscsiadm -m node -L automatic
+ExecStopPre=/sbin/iscsiadm -m node -U all
+
+[Install]
+WantedBy=multi-user.target remote-fs.target
More information about the Lunar-commits
mailing list