Use service foo rather than calling init scripts directly
[mirror/dsa-wiki.git] / input / howto / new-machine.creole
index d8e6c65..054ef19 100644 (file)
@@ -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