summaryrefslogtreecommitdiffstats
path: root/systemd
diff options
context:
space:
mode:
authorPrasanna Kumar Kalever <prasanna.kalever@redhat.com>2017-01-16 17:54:23 +0530
committerPrasanna Kumar Kalever <prasanna.kalever@redhat.com>2017-01-16 18:08:14 +0530
commit4ef14866295c1328a11f9a06cfc3bc1db9b1e7b6 (patch)
treeee1bbaefb9e34f44e37186b6a8d18dd22bc38cb1 /systemd
parentc5bcaaaf25e781c21d29dfb0f39b0aeb7edb8283 (diff)
gluster-blockd: add systemd unit file
starting gluster-blockd: $ make install $ systemctl daemon-reload $ systemctl start gluster-blockd.service checking status: $ systemctl status gluster-blockd.service ● gluster-blockd.service - Gluster block storage utility Loaded: loaded (gluster-blockd.service; disabled; vendor preset: disabled) Active: active (running) since Mon 01-16 17:53:23 IST; 3min 42s ago Main PID: 27552 (gluster-blockd) Tasks: 1 (limit: 512) CGroup: /system.slice/gluster-blockd.service └─27552 /usr/local/sbin/gluster-blockd Jan 16 17:53:23 local systemd[1]: Started Gluster block storage utility. gluster-blockd.service inturn brings below services: 1. rpcbind.service 2. target.service and 3. tcmu-runner.service In order. Signed-off-by: Prasanna Kumar Kalever <prasanna.kalever@redhat.com>
Diffstat (limited to 'systemd')
-rw-r--r--systemd/gluster-blockd.service12
1 files changed, 12 insertions, 0 deletions
diff --git a/systemd/gluster-blockd.service b/systemd/gluster-blockd.service
new file mode 100644
index 0000000..d1fc67c
--- /dev/null
+++ b/systemd/gluster-blockd.service
@@ -0,0 +1,12 @@
+[Unit]
+Description=Gluster block storage utility
+Requires=rpcbind.service target.service tcmu-runner.service
+After=rpcbind.service target.service tcmu-runner.service
+
+[Service]
+Type=simple
+ExecStart=/usr/local/sbin/gluster-blockd
+KillMode=process
+
+[Install]
+WantedBy=multi-user.target