| 1 |
[Unit] |
| 2 |
Description=Setup system to export rbd images through LIO |
| 3 |
|
| 4 |
Requires=sys-kernel-config.mount |
| 5 |
After=sys-kernel-config.mount network-online.target rbd-target-api.service |
| 6 |
Wants=network-online.target |
| 7 |
|
| 8 |
[Service] |
| 9 |
LimitNOFILE=1048576 |
| 10 |
LimitNPROC=1048576 |
| 11 |
Environment=PYTHONUNBUFFERED=TRUE |
| •12 |
EnvironmentFile=-/etc/default/ceph |
| 13 |
Type=simple |
| 14 |
User=root |
| 15 |
Group=root |
| 16 |
ExecStart=/usr/bin/rbd-target-gw |
| 17 |
ExecReload=/usr/bin/kill -HUP $MAINPID |
| 18 |
PrivateDevices=yes |
| 19 |
ProtectHome=true |
| 20 |
ProtectSystem=full |
| 21 |
PrivateTmp=true |
| 22 |
Restart=on-failure |
| 23 |
StartLimitInterval=30min |
| 24 |
StartLimitBurst=3 |
| 25 |
|
| 26 |
[Install] |
| 27 |
WantedBy=multi-user.target |