X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fceph%2Fsystemd%2Fceph-mon%40.service;fp=src%2Fceph%2Fsystemd%2Fceph-mon%40.service;h=db4995fb9ca8c5d7b1cbd1f6b8bd5b280c7da00b;hb=812ff6ca9fcd3e629e49d4328905f33eee8ca3f5;hp=0000000000000000000000000000000000000000;hpb=15280273faafb77777eab341909a3f495cf248d9;p=stor4nfv.git diff --git a/src/ceph/systemd/ceph-mon@.service b/src/ceph/systemd/ceph-mon@.service new file mode 100644 index 0000000..db4995f --- /dev/null +++ b/src/ceph/systemd/ceph-mon@.service @@ -0,0 +1,31 @@ +[Unit] +Description=Ceph cluster monitor daemon + +# According to: +# http://www.freedesktop.org/wiki/Software/systemd/NetworkTarget +# these can be removed once ceph-mon will dynamically change network +# configuration. +After=network-online.target local-fs.target time-sync.target +Wants=network-online.target local-fs.target time-sync.target + +PartOf=ceph-mon.target + +[Service] +LimitNOFILE=1048576 +LimitNPROC=1048576 +EnvironmentFile=-/etc/sysconfig/ceph +Environment=CLUSTER=ceph +ExecStart=/usr/bin/ceph-mon -f --cluster ${CLUSTER} --id %i --setuser ceph --setgroup ceph +ExecReload=/bin/kill -HUP $MAINPID +PrivateDevices=yes +ProtectHome=true +ProtectSystem=full +PrivateTmp=true +TasksMax=infinity +Restart=on-failure +StartLimitInterval=30min +StartLimitBurst=5 +RestartSec=10 + +[Install] +WantedBy=ceph-mon.target