diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-27 18:24:29 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-27 18:24:29 +0000 |
commit | df4528d6668ab18e40584fe540355bdfba0fb6dd (patch) | |
tree | f1bfdcb6485edff853369405dd5423c662c47345 /debian/lib-systemd/system/ceph-osd@.service | |
parent | Adding upstream version 14.2.21. (diff) | |
download | ceph-df4528d6668ab18e40584fe540355bdfba0fb6dd.tar.xz ceph-df4528d6668ab18e40584fe540355bdfba0fb6dd.zip |
Adding debian version 14.2.21-1.debian/14.2.21-1debian
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/lib-systemd/system/ceph-osd@.service')
-rw-r--r-- | debian/lib-systemd/system/ceph-osd@.service | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/debian/lib-systemd/system/ceph-osd@.service b/debian/lib-systemd/system/ceph-osd@.service new file mode 100644 index 00000000..adfa6a02 --- /dev/null +++ b/debian/lib-systemd/system/ceph-osd@.service @@ -0,0 +1,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 |