]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
systemd: make ceph-osd setuid/gid to ceph:ceph
authorSage Weil <sage@redhat.com>
Fri, 24 Apr 2015 00:15:14 +0000 (17:15 -0700)
committerSage Weil <sage@redhat.com>
Thu, 27 Aug 2015 00:34:15 +0000 (20:34 -0400)
Signed-off-by: Sage Weil <sage@redhat.com>
systemd/ceph-osd@.service.in

index 72d21f432d11ced6cc1ca4571dcc0f9dbcadd706..69ab8c358a5acec343a3faefd6e2b9675f39a508 100644 (file)
@@ -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