]> git.proxmox.com Git - ceph.git/blame - ceph/systemd/ceph-mon@.service.in
import quincy beta 17.1.0
[ceph.git] / ceph / systemd / ceph-mon@.service.in
CommitLineData
7c673cae
FG
1[Unit]
2Description=Ceph cluster monitor daemon
f91f0fd5 3PartOf=ceph-mon.target
7c673cae
FG
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.
8After=network-online.target local-fs.target time-sync.target
f91f0fd5
TL
9Before=remote-fs-pre.target ceph-mon.target
10Wants=network-online.target local-fs.target time-sync.target remote-fs-pre.target ceph-mon.target
7c673cae
FG
11
12[Service]
7c673cae 13Environment=CLUSTER=ceph
f67539c2 14EnvironmentFile=-@SYSTEMD_ENV_FILE@
7c673cae 15ExecReload=/bin/kill -HUP $MAINPID
f67539c2
TL
16ExecStart=/usr/bin/ceph-mon -f --cluster ${CLUSTER} --id %i --setuser ceph --setgroup ceph
17LimitNOFILE=1048576
18LimitNPROC=1048576
11fdf7f2
TL
19LockPersonality=true
20MemoryDenyWriteExecute=true
21# Need NewPrivileges via `sudo smartctl`
22NoNewPrivileges=false
20effc67
TL
23# We need access to block devices to check the health of the disk backing the
24# monitor DB store. It can be set to `true` if you're not interested in that
25# feature.
26PrivateDevices=false
f67539c2 27PrivateTmp=true
11fdf7f2 28ProtectControlGroups=true
7c673cae 29ProtectHome=true
f67539c2
TL
30ProtectHostname=true
31ProtectKernelLogs=true
11fdf7f2
TL
32ProtectKernelModules=true
33ProtectKernelTunables=true
7c673cae 34ProtectSystem=full
7c673cae 35Restart=on-failure
7c673cae 36RestartSec=10
f67539c2
TL
37RestrictSUIDSGID=true
38StartLimitBurst=5
39StartLimitInterval=30min
40TasksMax=infinity
7c673cae
FG
41
42[Install]
43WantedBy=ceph-mon.target