]> git.proxmox.com Git - ceph.git/blob - ceph/systemd/ceph-mon@.service.in
update sources to ceph Nautilus 14.2.1
[ceph.git] / ceph / systemd / ceph-mon@.service.in
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=-@SYSTEMD_ENV_FILE@
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 LockPersonality=true
21 MemoryDenyWriteExecute=true
22 # Need NewPrivileges via `sudo smartctl`
23 NoNewPrivileges=false
24 PrivateDevices=yes
25 ProtectControlGroups=true
26 ProtectHome=true
27 ProtectKernelModules=true
28 ProtectKernelTunables=true
29 ProtectSystem=full
30 PrivateTmp=true
31 TasksMax=infinity
32 Restart=on-failure
33 StartLimitInterval=30min
34 StartLimitBurst=5
35 RestartSec=10
36
37 [Install]
38 WantedBy=ceph-mon.target