summaryrefslogtreecommitdiffstats
path: root/debian/lib-systemd/system/ceph-osd@.service
blob: adfa6a02fef12f774c81d4c5e824c432dbaefdca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
[Unit]
Description=Ceph object storage daemon (OSD)
Documentation=man:ceph-osd
After=network-online.target
Wants=network-online.target
PartOf=ceph.service
RequiresMountsFor=/var/lib/ceph/osd/ceph-%i

[Service]
Environment=CLUSTER=ceph
Environment=CONFIG=/etc/ceph/ceph.conf
EnvironmentFile=-/etc/default/ceph
ExecStartPre=-/bin/sh -c '${osd_prestart_sh}' -- %i
ExecStartPre=/usr/lib/ceph/ceph-osd-prestart.sh --id %i --cluster ${CLUSTER}
ExecStart=/usr/bin/ceph-osd --id %i --foreground --cluster ${CLUSTER} -c ${CONFIG}
ExecStopPost=-/bin/sh -c '${osd_poststop_sh}' -- %i
LimitNOFILE=327680
Restart=on-failure
RestartSec=30

[Install]
WantedBy=multi-user.target