dlan 14/05/21 07:43:24 Added: ceph.initd-r1 ceph.logrotate ceph.confd-r1 Log: version bump 0.80.1, fix bug #510396, #507956, thanks @babykart, @Changyuan Yu, @LeeL (Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key 0xAABEFD55)
Revision Changes Path 1.1 sys-cluster/ceph/files/ceph.initd-r1 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/ceph/files/ceph.initd-r1?rev=1.1&view=markup plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/ceph/files/ceph.initd-r1?rev=1.1&content-type=text/plain Index: ceph.initd-r1 =================================================================== #!/sbin/runscript ceph_conf="${ceph_conf:-/etc/ceph/ceph.conf}" extra_commands="reload" type=${RC_SVCNAME:5:3} id=${RC_SVCNAME:9} id=${id:-"0"} command="/usr/bin/ceph-${type}" pidfile="/run/ceph/${type}.${id}.pid" command_args="-i ${id} --pid-file ${pidfile} -c ${ceph_conf}" depend() { after net before netmount } is_type_valid() { case ${type} in mon|mds|osd) return 0;; *) return 1;; esac } start_pre() { checkpath -d -q $(dirname ${pidfile}) } start() { ebegin "Starting Ceph ${type}.${id}" if ! is_type_valid ;then eerror "Please give valid Ceph Server Type: mds, mon, osd" return 1 fi ${command} ${command_args} eend $? } stop() { ebegin "Stopping Ceph ${type}.${id}" start-stop-daemon --stop --pidfile ${pidfile} eend $? } reload() { ebegin "Reloading Ceph ${type}.${id}" start-stop-daemon --signal 1 --pidfile ${pidfile} eend $? } 1.1 sys-cluster/ceph/files/ceph.logrotate file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/ceph/files/ceph.logrotate?rev=1.1&view=markup plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/ceph/files/ceph.logrotate?rev=1.1&content-type=text/plain Index: ceph.logrotate =================================================================== /var/log/ceph/admin.log /var/log/ceph/ceph.log /var/log/ceph/ceph-mon.* /var/log/ceph/ceph-mds.* /var/log/ceph/ceph-osd.* { rotate 7 daily compress sharedscripts prerotate for dmn in $(cd /run/ceph && ls *.asok); do ceph --admin-daemon /run/ceph/${dmn} log flush 2>/dev/null >&1 done endscript postrotate for dmn in $(cd /run/ceph && ls *.asok); do ceph --admin-daemon /run/ceph/${dmn} log reopen 2>/dev/null >&1 done endscript missingok } 1.1 sys-cluster/ceph/files/ceph.confd-r1 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/ceph/files/ceph.confd-r1?rev=1.1&view=markup plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/ceph/files/ceph.confd-r1?rev=1.1&content-type=text/plain Index: ceph.confd-r1 =================================================================== # Example # default ceph conf file #ceph_conf="/etc/ceph/ceph.conf"
