From e6d88112a561d36076c404656e55fdc9b2aaa93a Mon Sep 17 00:00:00 2001 From: lissav Date: Wed, 27 Feb 2008 13:14:43 +0000 Subject: [PATCH] change service calls to /etc/rc.d/init.d calls so it will work on SLES. git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@588 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT/xCAT.spec | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/xCAT/xCAT.spec b/xCAT/xCAT.spec index 41bdcfd48..d0997cc9d 100644 --- a/xCAT/xCAT.spec +++ b/xCAT/xCAT.spec @@ -108,8 +108,9 @@ if [ "$1" = "1" ]; then #Only if installing for the fist time.. if ! grep /install /etc/exports; then echo '/install *(ro,no_root_squash,sync)' >> /etc/exports #SECURITY: this has potential for sharing private host/user keys fi - service nfs restart chkconfig nfs on + /etc/rc.d/init.d/nfs stop + /etc/rc.d/init.d/nfs start exportfs -a if [ ! -r /etc/xcat/site.sqlite ]; then XCATROOT=$RPM_INSTALL_PREFIX0 $RPM_INSTALL_PREFIX0/sbin/chtab key=xcatdport site.value=3001 @@ -162,8 +163,9 @@ if [ "$1" = "1" ]; then #Only if installing for the fist time.. fi $RPM_INSTALL_PREFIX0/sbin/makenetworks XCATROOT=$RPM_INSTALL_PREFIX0 $RPM_INSTALL_PREFIX0/sbin/chtab key=nameservers site.value=`sed -e 's/#.*//' /etc/resolv.conf|grep nameserver|awk '{printf $2 ","}'|sed -e s/,$//` - service httpd restart chkconfig httpd on + /etc/rc.d/init.d/httpd stop + /etc/rc.d/init.d/httpd start echo "xCAT is now installed, it is recommended to tabedit networks and set a dynamic ip address range on any networks where nodes are to be discovered" echo "Then, run makedhcp -n to create a new dhcpd.configuration file, and /etc/init.d/dhcpd restart" echo "Either examine sample configuration templates, or write your own, or specify a value per node with nodeadd or tabedit."