5a1abd235d
Added init scripts for - SysvInit(CentOS 6 or Red Hat 6) - rc.d (FreeBSD) Most of the latest distributions are using systemd. Support to be added for other distributions which are not using systemd. Removed systemctl wrapper functions(start/stop/status) from gluster-eventsapi CLI(peer_eventsapi.py). Status and Reload re-implemented using pid file check. Added pid file support for glustereventsd. Following dependencies removed python-flask - Only used for example dashboard. User can install if required. python-fasteners - Not available for EPEL 6, added custom code using fcntl as replacement. BUG: 1365395 Change-Id: I26792eae9b11e93304f70b3997cd7d8d03b067f4 Signed-off-by: Aravinda VK <avishwan@redhat.com> Reviewed-on: http://review.gluster.org/15367 Smoke: Gluster Build System <jenkins@build.gluster.org> CentOS-regression: Gluster Build System <jenkins@build.gluster.org> Reviewed-by: Niels de Vos <ndevos@redhat.com> NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org> Reviewed-by: Kaleb KEITHLEY <kkeithle@redhat.com>
32 lines
849 B
Makefile
32 lines
849 B
Makefile
|
|
EXTRA_DIST = glusterd-Debian glusterd-FreeBSD glusterd-Redhat glusterd-SuSE \
|
|
glusterd.plist rhel5-load-fuse.modules \
|
|
glustereventsd-FreeBSD glustereventsd-Redhat
|
|
|
|
CLEANFILES =
|
|
|
|
INIT_DIR = @initdir@
|
|
SYSTEMD_DIR = @systemddir@
|
|
LAUNCHD_DIR = @launchddir@
|
|
|
|
$(GF_DISTRIBUTION):
|
|
@if [ ! -d $(SYSTEMD_DIR) ]; then \
|
|
$(mkdir_p) $(DESTDIR)$(INIT_DIR); \
|
|
$(INSTALL_PROGRAM) glusterd-$(GF_DISTRIBUTION) $(DESTDIR)$(INIT_DIR)/glusterd; \
|
|
fi
|
|
|
|
if BUILD_EVENTS
|
|
@if [ ! -d $(SYSTEMD_DIR) ]; then \
|
|
$(mkdir_p) $(DESTDIR)$(INIT_DIR); \
|
|
$(INSTALL_PROGRAM) glustereventsd-$(GF_DISTRIBUTION) $(DESTDIR)$(INIT_DIR)/glustereventsd; \
|
|
fi
|
|
endif
|
|
|
|
install-exec-local: $(GF_DISTRIBUTION)
|
|
|
|
install-data-local:
|
|
if GF_DARWIN_HOST_OS
|
|
$(mkdir_p) $(DESTDIR)$(LAUNCHD_DIR)
|
|
$(INSTALL_PROGRAM) glusterd.plist $(DESTDIR)$(LAUNCHD_DIR)/org.gluster.glusterd.plist
|
|
endif
|