Project

General

Profile

Backport #16442

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

Added by Vladislav Odintsov over 4 years ago. Updated almost 4 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Target version:
Release:
hammer
Crash signature:


Related issues

Copied from devops - Fix #16440: [initscripts]: systemd-run is not needed in initscripts Resolved 06/23/2016

History

#2 Updated by Nathan Cutler over 4 years ago

  • Tracker changed from Fix to Backport
  • Subject changed from [backport][hammer][initscripts]: systemd-run is not needed in initscripts to hammer: [initscripts]: systemd-run is not needed in initscripts
  • Description updated (diff)
  • Status changed from New to In Progress
  • Assignee changed from Vladislav Odintsov to Nathan Cutler

original 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.

#3 Updated by Nathan Cutler over 4 years ago

  • Status changed from In Progress to Need More Info

Backporting note: do not process further until https://github.com/ceph/ceph/pull/9871 has been merged and cherry-pick SHA1 has been double-checked.

#4 Updated by Vladislav Odintsov over 4 years ago

Thanks, Nathan, I'll cherry-pick commits from master to backport-branch after merge to master.

#5 Updated by Nathan Cutler about 4 years ago

  • Copied from Fix #16440: [initscripts]: systemd-run is not needed in initscripts added

#6 Updated by Nathan Cutler about 4 years ago

  • Status changed from Need More Info to In Progress

#7 Updated by Nathan Cutler almost 4 years ago

  • Project changed from Ceph to devops
  • Status changed from In Progress to Resolved
  • Target version set to v0.94.10

#8 Updated by Nathan Cutler almost 4 years ago

  • Copied from Fix #16440: [initscripts]: systemd-run is not needed in initscripts added

Also available in: Atom PDF