From: Sage Weil Date: Fri, 24 Apr 2015 00:15:14 +0000 (-0700) Subject: systemd: make ceph-osd setuid/gid to ceph:ceph X-Git-Tag: v9.1.0~294^2~24 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=7c9fdf44f2c18659a0bcc03f7b98dafdf9f54448;p=ceph.git systemd: make ceph-osd setuid/gid to ceph:ceph Signed-off-by: Sage Weil --- diff --git a/systemd/ceph-osd@.service.in b/systemd/ceph-osd@.service.in index 72d21f432d11..69ab8c358a5a 100644 --- a/systemd/ceph-osd@.service.in +++ b/systemd/ceph-osd@.service.in @@ -7,8 +7,8 @@ PartOf=ceph.target [Service] EnvironmentFile=-/etc/sysconfig/ceph Environment=CLUSTER=ceph -ExecStart=/usr/bin/ceph-osd -f --cluster ${CLUSTER} --id %i -ExecStartPre=@systemd_libexec_dir@/ceph-osd-prestart.sh --cluster ${CLUSTER} --id %i +ExecStart=/usr/bin/ceph-osd -f --cluster ${CLUSTER} --id %i --setuser ceph --setgroup ceph +ExecStartPre=/usr/libexec/ceph/ceph-osd-prestart.sh --cluster ${CLUSTER} --setuser ceph --setgroup ceph --id %i LimitNOFILE=131072 ExecReload=/bin/kill -HUP $MAINPID