]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
cephadm: include daemon/unit id in unit name 32970/head
authorSage Weil <sage@redhat.com>
Wed, 29 Jan 2020 17:05:51 +0000 (11:05 -0600)
committerSage Weil <sage@redhat.com>
Wed, 29 Jan 2020 17:05:51 +0000 (11:05 -0600)
This makes the log messages more descriptive.

Signed-off-by: Sage Weil <sage@redhat.com>
src/cephadm/cephadm

index 9684b91451b4438ff6da60ea7df4609eac82199e..81ab147e27a3d5ff174eb5adf4e5626896f1b33b 100755 (executable)
@@ -1400,7 +1400,7 @@ def deploy_crash(fsid, uid, gid, config, keyring):
     unit_name = 'ceph-%s-crash.service' % fsid
     with open(os.path.join(args.unit_dir, unit_name + '.new'), 'w') as f:
         f.write('[Unit]\n'
-                'Description=Ceph cluster {fsid} crash dump collector\n'
+                'Description=Ceph crash collector for {fsid}\n'
                 'PartOf=ceph-{fsid}.target\n'
                 'Before=ceph-{fsid}.target\n'
                 '\n'
@@ -1429,7 +1429,7 @@ def get_unit_file(fsid, uid, gid):
     # type: (str, int, int) -> str
     install_path = find_program('install')
     u = """[Unit]
-Description=Ceph daemon for {fsid}
+Description=Ceph %i for {fsid}
 
 # According to:
 #   http://www.freedesktop.org/wiki/Software/systemd/NetworkTarget