diff options
-rw-r--r-- | extras/systemd/gluster-ta-volume.service.in | 2 | ||||
-rwxr-xr-x | extras/thin-arbiter/setup-thin-arbiter.sh | 5 |
2 files changed, 4 insertions, 3 deletions
diff --git a/extras/systemd/gluster-ta-volume.service.in b/extras/systemd/gluster-ta-volume.service.in index f262aac9202..452c01c419f 100644 --- a/extras/systemd/gluster-ta-volume.service.in +++ b/extras/systemd/gluster-ta-volume.service.in @@ -4,7 +4,7 @@ After=network.target [Service] Environment="LOG_LEVEL=WARNING" -ExecStart=@prefix@/sbin/glusterfsd -N --volfile-id ta-vol -f @GLUSTERD_WORKDIR@/thin-arbiter/thin-arbiter.vol --brick-port 24007 --xlator-option ta-vol-server.transport.socket.listen-port=24007 +ExecStart=@prefix@/sbin/glusterfsd -N --volfile-id ta -f @GLUSTERD_WORKDIR@/thin-arbiter/thin-arbiter.vol --brick-port 24007 --xlator-option ta-server.transport.socket.listen-port=24007 Restart=always KillMode=process SuccessExitStatus=15 diff --git a/extras/thin-arbiter/setup-thin-arbiter.sh b/extras/thin-arbiter/setup-thin-arbiter.sh index 1c77cf07c57..0681b30ef3f 100755 --- a/extras/thin-arbiter/setup-thin-arbiter.sh +++ b/extras/thin-arbiter/setup-thin-arbiter.sh @@ -22,6 +22,7 @@ # script or by any other mean. The same location should be used in # the gluster CLI when creating thin-arbiter volumes. +MYPATH=`dirname $0` volloc="/var/lib/glusterd/thin-arbiter" mkdir -p $volloc @@ -29,7 +30,7 @@ mkdir -p $volloc if [ -f /etc/glusterfs/thin-arbiter.vol ]; then volfile=/etc/glusterfs/thin-arbiter.vol else - volfile=extras/thin-arbiter/thin-arbiter.vol + volfile=$MYPATH/thin-arbiter.vol fi tafile="$volloc/thin-arbiter.vol" @@ -135,7 +136,7 @@ setup () { if [ -f /usr/lib/systemd/system/gluster-ta-volume.service ]; then echo "Starting thin-arbiter process" else - cp ../systemd/gluster-ta-volume.service /etc/systemd/system/ + cp $MYPATH/../systemd/gluster-ta-volume.service /etc/systemd/system/ echo "Starting thin-arbiter process" chmod 0644 /etc/systemd/system/gluster-ta-volume.service fi |