From a832ef022e8322b1912f0b6cf4061d14ed2ba62a Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Fri, 4 Dec 2015 21:09:39 +0000 Subject: ocfs2.service --- systemd-units/ocfs2.service | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 systemd-units/ocfs2.service (limited to 'systemd-units') 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 -- cgit v1.2.3