diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-27 18:24:20 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-27 18:24:20 +0000 |
commit | 483eb2f56657e8e7f419ab1a4fab8dce9ade8609 (patch) | |
tree | e5d88d25d870d5dedacb6bbdbe2a966086a0a5cf /src/init-rbdmap | |
parent | Initial commit. (diff) | |
download | ceph-483eb2f56657e8e7f419ab1a4fab8dce9ade8609.tar.xz ceph-483eb2f56657e8e7f419ab1a4fab8dce9ade8609.zip |
Adding upstream version 14.2.21.upstream/14.2.21upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/init-rbdmap')
-rwxr-xr-x | src/init-rbdmap | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/src/init-rbdmap b/src/init-rbdmap new file mode 100755 index 00000000..6058e397 --- /dev/null +++ b/src/init-rbdmap @@ -0,0 +1,56 @@ +#!/usr/bin/env bash +# +# rbdmap Ceph RBD Mapping +# +# chkconfig: 2345 20 80 +# description: Ceph RBD Mapping + +### BEGIN INIT INFO +# Provides: rbdmap +# Required-Start: $network $remote_fs +# Required-Stop: $network $remote_fs +# Should-Start: ceph +# Should-Stop: ceph +# X-Start-Before: $x-display-manager +# Default-Start: 2 3 4 5 +# Default-Stop: 0 1 6 +# Short-Description: Ceph RBD Mapping +# Description: Ceph RBD Mapping +### END INIT INFO + +RBDMAPFILE="/etc/ceph/rbdmap" + +if [ -e /lib/lsb/init-functions ]; then + . /lib/lsb/init-functions +fi + + + + +case "$1" in + start) + rbdmap device map + ;; + + stop) + rbdmap device unmap + ;; + + restart|force-reload) + $0 stop + $0 start + ;; + + reload) + rbdmap device map + ;; + + status) + rbd device list + ;; + + *) + echo "Usage: rbdmap {start|stop|restart|force-reload|reload|status}" + exit 1 + ;; +esac |