Skip to content

Commit

Permalink
Merge pull request ceph#37729 from mgfritch/cephadm-podman-logdriver
Browse files Browse the repository at this point in the history
cephadm: configure journald as the logdriver

Reviewed-by: Adam King <[email protected]>
Reviewed-by: Dimitri Savineau <[email protected]>
  • Loading branch information
sebastian-philipp authored Feb 8, 2021
2 parents f635555 + 7c44f21 commit 602a913
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/cephadm/cephadm
Original file line number Diff line number Diff line change
Expand Up @@ -2370,11 +2370,13 @@ def get_container(ctx: CephadmContext,
# so service can have Type=Forking
if 'podman' in ctx.container_path:
runtime_dir = '/run'
container_args.extend(['-d',
container_args.extend([
'-d', '--log-driver', 'journald',
'--conmon-pidfile',
runtime_dir + '/ceph-%s@%s.%s.service-pid' % (fsid, daemon_type, daemon_id),
'--cidfile',
runtime_dir + '/ceph-%s@%s.%s.service-cid' % (fsid, daemon_type, daemon_id)])
runtime_dir + '/ceph-%s@%s.%s.service-cid' % (fsid, daemon_type, daemon_id),
])

return CephContainer(
ctx,
Expand Down

0 comments on commit 602a913

Please sign in to comment.