Skip to content

Commit

Permalink
Include ceph-init-detect(8) man page
Browse files Browse the repository at this point in the history
Fixes FTBFS. Submitted upstream at ceph#7933
  • Loading branch information
ktdreyer committed Mar 9, 2016
1 parent 7046fbe commit 3fba709
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 0 deletions.
54 changes: 54 additions & 0 deletions debian/ceph-detect-init.rst
@@ -0,0 +1,54 @@
:orphan:

============================================================
ceph-detect-init -- display the init system Ceph should use
============================================================

.. program:: ceph-detect-init

Synopsis
========

| **ceph-detect-init** [--verbose] [--use-rhceph] [--default *init*]
Description
===========

:program:`ceph-detect-init` is a utility that prints the init system
Ceph uses. It can be one of ``sysvinit``, ``upstart`` or ``systemd``.
The init system Ceph uses may not be the default init system of the
host operating system. For instance on Debian Jessie, Ceph may use
``sysvinit`` although ``systemd`` is the default.

If the init system of the host operating system is unknown, return on
error, unless :option:`--default` is specified.

Options
=======

.. option:: --use-rhceph

When an operating system identifies itself as Red Hat, it is
treated as if it was CentOS. With :option:`--use-rhceph` it is
treated as RHEL instead.

.. option:: --default INIT

If the init system of the host operating system is unkown, return
the value of *INIT* instead of failing with an error.

.. option:: --verbose

Display additional information for debugging.

Availability
============

:program:`ceph-detect-init` is part of Ceph, a massively scalable, open-source, distributed storage system. Please refer to
the Ceph documentation at http://ceph.com/docs for more information.

See also
========

:doc:`ceph-disk <ceph-disk>`\(8),
:doc:`ceph-deploy <ceph-deploy>`\(8)
2 changes: 2 additions & 0 deletions debian/rules
Expand Up @@ -42,6 +42,8 @@ configure-stamp:
# Rewrite .git_version file with the correct patch information.
echo $(COMMIT) > src/.git_version
echo v$(DEB_VERSION) >> src/.git_version
# https://github.com/ceph/ceph/pull/7933
cp debian/ceph-detect-init.rst doc/man/8/
./autogen.sh
./configure --prefix=/usr --localstatedir=/var \
--sysconfdir=/etc --libexecdir=/usr/lib $(extraopts) $(confflags) \
Expand Down

0 comments on commit 3fba709

Please sign in to comment.