From: Sage Weil Date: Mon, 14 Sep 2015 14:58:15 +0000 (-0400) Subject: systemd: no need to preprocess ceph-osd@service X-Git-Tag: v9.1.0~143^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=367c794cb1ab701d6a28bdbaa5f7cd84e16a5e32;p=ceph.git systemd: no need to preprocess ceph-osd@service This used to be necessary but now is not. Signed-off-by: Sage Weil --- diff --git a/.gitignore b/.gitignore index 557861a19335..f6233f3e3e05 100644 --- a/.gitignore +++ b/.gitignore @@ -52,7 +52,6 @@ missing py-compile release stamp-h1 -systemd/ceph-osd@.service systemd/ceph-rgw.tmpfiles.d systemd/Makefile vgcore.* diff --git a/configure.ac b/configure.ac index 3ed736e7a749..58c0b6bc592a 100644 --- a/configure.ac +++ b/configure.ac @@ -1342,7 +1342,6 @@ AC_CONFIG_FILES([Makefile man/Makefile doc/Makefile selinux/Makefile - systemd/ceph-osd@.service systemd/ceph-rgw.tmpfiles.d ceph.spec]) AC_OUTPUT diff --git a/systemd/ceph-osd@.service b/systemd/ceph-osd@.service new file mode 100644 index 000000000000..1f7ccc4c10f1 --- /dev/null +++ b/systemd/ceph-osd@.service @@ -0,0 +1,16 @@ +[Unit] +Description=Ceph object storage daemon +After=network-online.target local-fs.target +Wants=network-online.target local-fs.target +PartOf=ceph.target + +[Service] +LimitNOFILE=1048576 +EnvironmentFile=-/etc/sysconfig/ceph +Environment=CLUSTER=ceph +ExecStart=/usr/bin/ceph-osd -f --cluster ${CLUSTER} --id %i --setuser ceph --setgroup ceph +ExecStartPre=/usr/libexec/ceph/ceph-osd-prestart.sh --cluster ${CLUSTER} --id %i --setuser ceph --setgroup ceph +ExecReload=/bin/kill -HUP $MAINPID + +[Install] +WantedBy=ceph.target diff --git a/systemd/ceph-osd@.service.in b/systemd/ceph-osd@.service.in deleted file mode 100644 index 1f7ccc4c10f1..000000000000 --- a/systemd/ceph-osd@.service.in +++ /dev/null @@ -1,16 +0,0 @@ -[Unit] -Description=Ceph object storage daemon -After=network-online.target local-fs.target -Wants=network-online.target local-fs.target -PartOf=ceph.target - -[Service] -LimitNOFILE=1048576 -EnvironmentFile=-/etc/sysconfig/ceph -Environment=CLUSTER=ceph -ExecStart=/usr/bin/ceph-osd -f --cluster ${CLUSTER} --id %i --setuser ceph --setgroup ceph -ExecStartPre=/usr/libexec/ceph/ceph-osd-prestart.sh --cluster ${CLUSTER} --id %i --setuser ceph --setgroup ceph -ExecReload=/bin/kill -HUP $MAINPID - -[Install] -WantedBy=ceph.target