mirror of
https://github.com/ceph/ceph
synced 2024-12-21 02:42:48 +00:00
ac347dc340
The libexec path is different for different distributions. systemd. This path is defined by a new variable on the configure path. This variable can be set with enviroment SYSTEMD_LIBEXEC_DIR. The parameter --with-systemd-libexec-dir overrides the enviroment variable. Appropriate conditionals are set for SUSE and RHEL derivatives. This is then used to template out systemd/ceph-osd@.service Signed-off-by: Owen Synge <osynge@suse.com>
16 lines
422 B
SYSTEMD
16 lines
422 B
SYSTEMD
[Unit]
|
|
Description=Ceph object storage daemon
|
|
After=network-online.target local-fs.target
|
|
Wants=network-online.target local-fs.target
|
|
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
|
|
LimitNOFILE=131072
|
|
|
|
[Install]
|
|
WantedBy=ceph.target
|