From 20898a81f42e3c3c0f958140c69f020ca5f90325 Mon Sep 17 00:00:00 2001 From: Tollef Fog Heen Date: Thu, 9 May 2013 10:19:58 +0200 Subject: [PATCH] Use service foo rather than calling init scripts directly --- input/howto/export-iscsi.creole | 2 +- input/howto/install-ganeti.creole | 2 +- input/howto/iscsi.creole | 6 +++--- input/howto/new-machine.creole | 2 +- input/howto/puppet-setup.mdwn | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/input/howto/export-iscsi.creole b/input/howto/export-iscsi.creole index ce89ce8..6d3b88f 100644 --- a/input/howto/export-iscsi.creole +++ b/input/howto/export-iscsi.creole @@ -23,7 +23,7 @@ This document describes how to add new new volumes on gustini and add them into iscsiadm -m node --targetname "iqn.1986-03.com.hp:storage.msa2012i.0834d5ecda.a" --rescan + on dijkstra: add aliases to the wwids (show topology) - + on dijkstra: /etc/init.d/multipath-tools reload + + on dijkstra: service multipath-tools reload }}} == via telnet interface == diff --git a/input/howto/install-ganeti.creole b/input/howto/install-ganeti.creole index bd2a3be..5f9734f 100644 --- a/input/howto/install-ganeti.creole +++ b/input/howto/install-ganeti.creole @@ -366,7 +366,7 @@ And you want to convert it to use DRBD afterwards and start it on the other clus then: reload multipath-tools on gnt-master (normaly bm-bl1): - /etc/init.d/multipath-tools reload + service multipath-tools reload add the WWNs to dsa-puppet/modules/multipath/files/bm-multipath.conf and define the alias and commit that file to git. then: diff --git a/input/howto/iscsi.creole b/input/howto/iscsi.creole index 83e8eef..78acd25 100644 --- a/input/howto/iscsi.creole +++ b/input/howto/iscsi.creole @@ -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 }}} diff --git a/input/howto/new-machine.creole b/input/howto/new-machine.creole index d8e6c65..054ef19 100644 --- a/input/howto/new-machine.creole +++ b/input/howto/new-machine.creole @@ -48,7 +48,7 @@ Note: this has recently been changed to rely more on [[puppet|howto/puppet-setup s/^group:\[[:space:]]\+compat$/group: db compat/; s/^shadow:\[[:space:]]\+compat$/shadow: compat db/' \ /etc/nsswitch.conf - (cd / && env -i /etc/init.d/ssh restart) + (service ssh restart) }}} * on the host, run ud-replicate diff --git a/input/howto/puppet-setup.mdwn b/input/howto/puppet-setup.mdwn index 9487503..aad6e4e 100644 --- a/input/howto/puppet-setup.mdwn +++ b/input/howto/puppet-setup.mdwn @@ -14,7 +14,7 @@ adjusted. : ::client:: && me=$(hostname -f) && [ "$me" != "${me%debian.org}" ] && apt-get update && apt-get install -y --no-install-recommends puppet libaugeas-ruby1.8 augeas-lenses lsb-release && - /etc/init.d/puppet stop && + service puppet stop && (puppet agent -t || true ) && cd /var/lib/puppet/ssl/certificate_requests && echo sha256sum output: && echo && -- 2.20.1