diff options
author | Prasanna Kumar Kalever <prasanna.kalever@redhat.com> | 2017-02-05 20:23:20 +0530 |
---|---|---|
committer | Prasanna Kumar Kalever <prasanna.kalever@redhat.com> | 2017-02-07 13:29:05 +0530 |
commit | 23b12455796ec453ca35e94ab49e7629d7f9aced (patch) | |
tree | 0d69ce51ad68b56a753fa8e4a021bec2a3cc5f4a /systemd | |
parent | bbcbaf494ad406ceea4f0175b91cf67966d32a27 (diff) |
gluster-block: migrate build to libtoolz and create rpm
Till now we had simple makefile for checking dependencies and building.
Using libtoolz will give more control on dependency checks and
flexibility.
This patch also introduce rpm build feature.
Compiling:
$ ./autogen.sh
$ ./configure
$ make -j
$ make install
Building RPMS:
$ make rpms
Running:
$ systemctl start gluster-blockd.service
Using CLI:
$ gluster-block help
Signed-off-by: Prasanna Kumar Kalever <prasanna.kalever@redhat.com>
Diffstat (limited to 'systemd')
-rw-r--r-- | systemd/Makefile.am | 10 | ||||
-rw-r--r-- | systemd/gluster-blockd.service.in (renamed from systemd/gluster-blockd.service) | 2 |
2 files changed, 11 insertions, 1 deletions
diff --git a/systemd/Makefile.am b/systemd/Makefile.am new file mode 100644 index 0000000..605e1f8 --- /dev/null +++ b/systemd/Makefile.am @@ -0,0 +1,10 @@ +DISTCLEANFILES = Makefile.in gluster-blockd.service + +CLEANFILES = *~ gluster-blockd.service + +EXTRA_DIST = gluster-blockd.service.in + +if USE_SYSTEMD +# systemddir is already defined through configure.ac +systemd_DATA = gluster-blockd.service +endif diff --git a/systemd/gluster-blockd.service b/systemd/gluster-blockd.service.in index d1fc67c..a92c10c 100644 --- a/systemd/gluster-blockd.service +++ b/systemd/gluster-blockd.service.in @@ -5,7 +5,7 @@ After=rpcbind.service target.service tcmu-runner.service [Service] Type=simple -ExecStart=/usr/local/sbin/gluster-blockd +ExecStart=@prefix@/sbin/gluster-blockd KillMode=process [Install] |