Project

General

Profile

Actions

Fix #16440

closed

[initscripts]: systemd-run is not needed in initscripts

Added by Vladislav Odintsov almost 8 years ago. Updated over 7 years ago.

Status:
Resolved
Priority:
Normal
Category:
-
Target version:
-
% Done:

100%

Source:
Community (user)
Tags:
Backport:
jewel,hammer
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

systemd-run logic in initscripts was introduced because of ticket http://tracker.ceph.com/issues/7627. If we have systemd-based distro, we should use systemd unit files from systemd directory to start/stop ceph daemons. Otherwise, daemon() from /etc/init.d/functions on systemd distro starts service in system.slice and everything works well for case, for example, when we use hammer on RH7. With this code it will start daemon with daemon() function from init.d/functions. systemd-run can not be run on non-systemd distros, so it's not needed on SysV systems. I've performed successful testing with hammer on RH6, RH7 systems with ceph-osd, ceph-mon, ceph-radosgw services.


Related issues 2 (0 open2 closed)

Copied to devops - Backport #16441: jewel: [initscripts] systemd-run is not needed in initscriptsResolvedNathan CutlerActions
Copied to devops - Backport #16442: hammer: [initscripts]: systemd-run is not needed in initscriptsResolvedNathan CutlerActions
Actions

Also available in: Atom PDF