Fix some bugs when testing opensds ansible
[stor4nfv.git] / src / ceph / systemd / ceph-mon@.service
1 [Unit]
2 Description=Ceph cluster monitor daemon
3
4 # According to:
5 #   http://www.freedesktop.org/wiki/Software/systemd/NetworkTarget
6 # these can be removed once ceph-mon will dynamically change network
7 # configuration.
8 After=network-online.target local-fs.target time-sync.target
9 Wants=network-online.target local-fs.target time-sync.target
10
11 PartOf=ceph-mon.target
12
13 [Service]
14 LimitNOFILE=1048576
15 LimitNPROC=1048576
16 EnvironmentFile=-/etc/sysconfig/ceph
17 Environment=CLUSTER=ceph
18 ExecStart=/usr/bin/ceph-mon -f --cluster ${CLUSTER} --id %i --setuser ceph --setgroup ceph
19 ExecReload=/bin/kill -HUP $MAINPID
20 PrivateDevices=yes
21 ProtectHome=true
22 ProtectSystem=full
23 PrivateTmp=true
24 TasksMax=infinity
25 Restart=on-failure
26 StartLimitInterval=30min
27 StartLimitBurst=5
28 RestartSec=10
29
30 [Install]
31 WantedBy=ceph-mon.target