mirror of
https://github.com/gluster/gluster-block.git
synced 2026-02-05 21:45:39 +01:00
Problem
gluster-blockd supports systemd officially but many legacy distros
want to use initd
Resolve
includes initd scripts for non-systemd distros
Change-Id: I8495e8d9abbef6d26ac7dc8dbbe6d07e7713f537
Signed-off-by: Ji-Hyeon Gim <potatogim@gluesys.com>
25 lines
833 B
Makefile
25 lines
833 B
Makefile
DISTCLEANFILES = Makefile.in gluster-blockd.service gluster-block-target.service \
|
|
gluster-blockd.initd
|
|
|
|
CLEANFILES = *~ gluster-blockd.service gluster-block-target.service \
|
|
gluster-blockd.initd
|
|
|
|
EXTRA_DIST = gluster-blockd.service.in gluster-block-target.service.in \
|
|
gluster-blockd.initd.in gluster-blockd.sysconfig
|
|
|
|
if USE_SYSTEMD
|
|
# systemddir is already defined through configure.ac
|
|
systemd_DATA = gluster-blockd.service gluster-block-target.service
|
|
else
|
|
# initddir is already defined through configure.ac
|
|
initd_DATA = gluster-blockd.initd
|
|
endif
|
|
|
|
install-data-local:
|
|
$(MKDIR_P) $(DESTDIR)${sysconfigdir}; \
|
|
$(INSTALL_DATA) gluster-blockd.sysconfig \
|
|
$(DESTDIR)${sysconfigdir}/gluster-blockd;
|
|
|
|
uninstall-local:
|
|
rm -f $(DESTDIR)${sysconfigdir}/gluster-blockd
|