diff options
Diffstat (limited to 'sys-cluster/drbd/files/0.6.12-init')
-rw-r--r-- | sys-cluster/drbd/files/0.6.12-init | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/sys-cluster/drbd/files/0.6.12-init b/sys-cluster/drbd/files/0.6.12-init new file mode 100644 index 000000000000..d617b580ef6f --- /dev/null +++ b/sys-cluster/drbd/files/0.6.12-init @@ -0,0 +1,22 @@ +#!/sbin/runscript + +depend() { + need net + before heartbeat + after sshd # In case there are sync problems +} + +start() { + ebegin "Starting drbd mirror driver" + ${DRBD} ${DRBDDEV} start + if [ "$?" == "1" ]; then # In case you decide this + eend 0 # node is primary the + fi # script returns 1 + eend $? +} + +stop() { + ebegin "Stopping drbd mirror driver" + ${DRBD} ${DRBDDEV} stop + eend $? +} |