mirror of
https://github.com/ceph/ceph
synced 2024-12-24 12:24:19 +00:00
69291f872e
First, it makes sense for both ceph_common.sh and ceph-osd-prestart.sh to reside in the same directory: make it so. Second, /usr/lib exists on both RHEL/Fedora and SLE/openSUSE, whereas the later lacks /usr/libexec. To make this less painful, package ceph_common.sh and ceph-osd-prestart.sh in /usr/lib/ceph. Third, allow e.g. FreeBSD to do its own thing by using the $(libexecdir) Autoconf variable (but set it to /usr/lib in the spec file). http://tracker.ceph.com/issues/14687 Fixes: #14687 Signed-off-by: Nathan Cutler <ncutler@suse.com>
21 lines
591 B
Desktop File
21 lines
591 B
Desktop File
[Unit]
|
|
Description=Ceph object storage daemon
|
|
After=network-online.target local-fs.target
|
|
Wants=network-online.target local-fs.target
|
|
PartOf=ceph-osd.target
|
|
|
|
[Service]
|
|
LimitNOFILE=1048576
|
|
LimitNPROC=1048576
|
|
EnvironmentFile=-/etc/sysconfig/ceph
|
|
Environment=CLUSTER=ceph
|
|
ExecStart=/usr/bin/ceph-osd -f --cluster ${CLUSTER} --id %i --setuser ceph --setgroup ceph
|
|
ExecStartPre=/usr/lib/ceph/ceph-osd-prestart.sh --cluster ${CLUSTER} --id %i --setuser ceph --setgroup ceph
|
|
ExecReload=/bin/kill -HUP $MAINPID
|
|
ProtectHome=true
|
|
ProtectSystem=full
|
|
PrivateTmp=true
|
|
|
|
[Install]
|
|
WantedBy=ceph-osd.target
|