/etc/init.d/rbdmap is in ceph-common 12.2.4-0ubuntu1.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 | #!/bin/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 map
;;
stop)
rbdmap unmap
;;
restart|force-reload)
$0 stop
$0 start
;;
reload)
rbdmap map
;;
status)
rbd showmapped
;;
*)
echo "Usage: rbdmap {start|stop|restart|force-reload|reload|status}"
exit 1
;;
esac
|