Skip to content

Commit

Permalink
systemd: consolidate into a single ceph-disk@.service
Browse files Browse the repository at this point in the history
This simple service will 'ceph-disk trigger DEV --sync'.

Signed-off-by: Sage Weil <sage@redhat.com>
  • Loading branch information
liewegas committed Sep 1, 2015
1 parent 82acd5e commit f1b80e9
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 26 deletions.
8 changes: 2 additions & 6 deletions ceph.spec.in
Original file line number Diff line number Diff line change
Expand Up @@ -591,9 +591,7 @@ install -D etc/ceph.limits.d $RPM_BUILD_ROOT%{_sysconfdir}/security/limits.d/cep
install -m 0644 -D systemd/ceph-mds@.service $RPM_BUILD_ROOT%{_unitdir}/ceph-mds@.service
install -m 0644 -D systemd/ceph-radosgw@.service $RPM_BUILD_ROOT%{_unitdir}/ceph-radosgw@.service
install -m 0644 -D systemd/ceph.target $RPM_BUILD_ROOT%{_unitdir}/ceph.target
install -m 0644 -D systemd/ceph-disk-activate-journal@.service $RPM_BUILD_ROOT%{_unitdir}/ceph-disk-activate-journal@.service
install -m 0644 -D systemd/ceph-disk-activate@.service $RPM_BUILD_ROOT%{_unitdir}/ceph-disk-activate@.service
install -m 0644 -D systemd/ceph-disk-dmcrypt-activate@.service $RPM_BUILD_ROOT%{_unitdir}/ceph-disk-dmcrypt-activate@.service
install -m 0644 -D systemd/ceph-disk@.service $RPM_BUILD_ROOT%{_unitdir}/ceph-disk@.service
install -m 0755 -D systemd/ceph $RPM_BUILD_ROOT%{_sbindir}/rcceph
%else
install -D src/init-ceph $RPM_BUILD_ROOT%{_initrddir}/ceph
Expand Down Expand Up @@ -747,9 +745,7 @@ mkdir -p %{_localstatedir}/run/ceph/
%{_unitdir}/ceph-create-keys@.service
%{_unitdir}/ceph-osd@.service
%{_unitdir}/ceph-radosgw@.service
%{_unitdir}/ceph-disk-activate-journal@.service
%{_unitdir}/ceph-disk-activate@.service
%{_unitdir}/ceph-disk-dmcrypt-activate@.service
%{_unitdir}/ceph-disk@.service
%{_unitdir}/ceph.target
%else
%{_initrddir}/ceph
Expand Down
4 changes: 1 addition & 3 deletions systemd/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@ unitfiles = \
ceph-create-keys@.service \
ceph-osd@.service \
ceph-radosgw@.service \
ceph-disk-activate-journal@.service \
ceph-disk-activate@.service \
ceph-disk-dmcrypt-activate@.service
ceph-disk@.service

unitdir = $(systemd_unit_dir)

Expand Down
8 changes: 0 additions & 8 deletions systemd/ceph-disk-activate-journal@.service

This file was deleted.

8 changes: 0 additions & 8 deletions systemd/ceph-disk-dmcrypt-activate@.service

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ Description=Ceph disk activation: %f
[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/usr/sbin/ceph-disk --verbose --log-stdout activate --mark-init systemd %f
ExecStart=/usr/sbin/ceph-disk --verbose --log-stdout trigger --sync %f
TimeoutSec=0

0 comments on commit f1b80e9

Please sign in to comment.