mirror of
https://github.com/ceph/ceph
synced 2024-12-26 21:43:10 +00:00
c26477448e
This patch adds systemd service files. It is possible to start and enable multiple instances (per monid, osdid, mds name), e.g. # systemctl start ceph-mon@node01 # systemctl enable ceph-mon@node01 # systemctl start ceph-osd@0 # systemctl enable ceph-osd@0 The ceph cluster can be set in the system config file: /etc/sysconfig/ceph adding or editing the CLUSTER environment variable. Signed-off-by: Federico Simoncelli <fsimonce@redhat.com>
18 lines
444 B
Desktop File
18 lines
444 B
Desktop File
[Unit]
|
|
Description=Ceph cluster monitor daemon
|
|
|
|
# According to:
|
|
# http://www.freedesktop.org/wiki/Software/systemd/NetworkTarget
|
|
# these can be removed once ceph-mon will dynamically change network
|
|
# configuration.
|
|
After=network-online.target
|
|
Wants=network-online.target
|
|
|
|
[Service]
|
|
EnvironmentFile=-/etc/sysconfig/ceph
|
|
Environment=CLUSTER=ceph
|
|
ExecStart=/usr/bin/ceph-mon -f --cluster ${CLUSTER} --id %i
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|