Use service foo rather than calling init scripts directly
[mirror/dsa-wiki.git] / input / howto / iscsi.creole
index 83e8eef..78acd25 100644 (file)
@@ -72,9 +72,9 @@ corresponding to the two addresses that controller A has:
 
 * stop and start iscsi:
 {{{
-       /etc/init.d/open-iscsi stop &&
+       service open-iscsi stop &&
        sleep 3 &&
-       (cd / && env -i /etc/init.d/open-iscsi start)
+       service open-iscsi start)
 }}}
 
 * not sure if this is necessary again:
@@ -183,7 +183,7 @@ apt-get install multipath-tools
 * for the wwid thing in there create an entry in multipath.conf with a proper name, then reload multipathd
 {{{
        vi /etc/multipath.conf
-       /etc/init.d/multipath-tools reload
+       service multipath-tools reload
        echo show topology | multipathd -k
        ls -l /dev/mapper
 }}}