Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12-SP1:GA
ceph
0008-systemd-support-in-ceph-disk-activa.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0008-systemd-support-in-ceph-disk-activa.patch of Package ceph
From: Owen Synge <osynge@suse.com> Date: Tue, 2 Sep 2014 15:54:07 +0200 Subject: [PATCH] systemd support in ceph-disk activate previous code just fails for systemd with an error (cherry picked from commit 6a6de1135aa0d0e0bb3951ab9e63ad1aa0c6b5d3) --- src/ceph-disk | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/ceph-disk b/src/ceph-disk index c5e7af6..6264d53 100755 --- a/src/ceph-disk +++ b/src/ceph-disk @@ -1705,6 +1705,21 @@ def start_daemon( 'osd.{osd_id}'.format(osd_id=osd_id), ], ) + elif os.path.exists(os.path.join(path, 'systemd')): + command_check_call( + [ + 'systemctl', + 'enable', + 'ceph-osd@{osd_id}'.format(osd_id=osd_id), + ], + ) + command_check_call( + [ + 'systemctl', + 'start', + 'ceph-osd@{osd_id}'.format(osd_id=osd_id), + ], + ) else: raise Error('{cluster} osd.{osd_id} is not tagged with an init system'.format( cluster=cluster,
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor