forked from vitalif/vitastor
23 lines
593 B
INI
23 lines
593 B
INI
|
[Unit]
|
||
|
Description=Vitastor object storage daemon osd.%i
|
||
|
After=network-online.target local-fs.target time-sync.target
|
||
|
Wants=network-online.target local-fs.target time-sync.target
|
||
|
PartOf=vitastor.target
|
||
|
|
||
|
[Service]
|
||
|
LimitNOFILE=1048576
|
||
|
LimitNPROC=1048576
|
||
|
LimitMEMLOCK=infinity
|
||
|
ExecStart=bash -c 'vitastor-disk exec-osd /dev/vitastor/osd%i-data >>/var/log/vitastor/osd%i.log 2>&1'
|
||
|
ExecStartPre=+vitastor-disk pre-exec /dev/vitastor/osd%i-data
|
||
|
WorkingDirectory=/
|
||
|
User=vitastor
|
||
|
PrivateTmp=false
|
||
|
TasksMax=infinity
|
||
|
Restart=always
|
||
|
StartLimitInterval=0
|
||
|
RestartSec=10
|
||
|
|
||
|
[Install]
|
||
|
WantedBy=vitastor.target
|