From da71d1359c1335997595935dbaa07c5747231861 Mon Sep 17 00:00:00 2001 From: Harshavardhana Date: Sun, 1 Mar 2009 05:35:18 -0800 Subject: Added proper handling for the init scripts for (Debian, Ubuntu, SuSE, Redhat), SuSE init script also added. * Init scripts added for Debian, Redhat, SuSE distribution, each are installed by checking each distribution specific. Tested on 1. Debian, Ubuntu. 2. Redhat, CentOS. 3. OpenSUSE. Signed-off-by: Anand V. Avati --- extras/init.d/Makefile.am | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'extras/init.d/Makefile.am') diff --git a/extras/init.d/Makefile.am b/extras/init.d/Makefile.am index 73e9745c..66849af8 100644 --- a/extras/init.d/Makefile.am +++ b/extras/init.d/Makefile.am @@ -1,12 +1,15 @@ -EXTRA_DIST = glusterfsd glusterfs-server glusterfs-server.plist +EXTRA_DIST = glusterfsd-Debian glusterfsd-Redhat glusterfsd-SuSE glusterfs-server.plist CLEANFILES = -initdir = $(sysconfdir)/init.d -init_DATA = glusterfsd +initdir = /etc/init.d -install-data-local: +$(GF_DISTRIBUTION): + $(mkdir_p) $(DESTDIR)$(initdir) + cp glusterfsd-$(GF_DISTRIBUTION) $(DESTDIR)$(initdir)/glusterfsd + +install-data-local: $(GF_DISTRIBUTION) if GF_DARWIN_HOST_OS cp glusterfs-server.plist /Library/LaunchDaemons/com.zresearch.glusterfs.plist endif -- cgit