summaryrefslogtreecommitdiff
path: root/systemd-units/ocfs2.service
diff options
context:
space:
mode:
Diffstat (limited to 'systemd-units/ocfs2.service')
-rw-r--r--systemd-units/ocfs2.service15
1 files changed, 15 insertions, 0 deletions
diff --git a/systemd-units/ocfs2.service b/systemd-units/ocfs2.service
new file mode 100644
index 0000000..861aacf
--- /dev/null
+++ b/systemd-units/ocfs2.service
@@ -0,0 +1,15 @@
+[Unit]
+Description=Oracle Cluster File System
+After=systemd-modules-load.service network.target drbd.service
+Requires=drbd.service
+Before=remote-fs.target
+
+[Service]
+Type=oneshot
+RemainAfterExit=yes
+
+ExecStart=/sbin/o2cb_ctl -H -n %I -t cluster -a online=yes
+ExecStop=/sbin/o2cb_ctl -H -n %I -t cluster -a online=no
+
+[Install]
+WantedBy=multi-user.target