24 lines
476 B
SYSTEMD
24 lines
476 B
SYSTEMD
|
[Unit]
|
||
|
Description=Minio
|
||
|
ConditionFileIsExecutable=/usr/bin/minio
|
||
|
After=syslog.target network-online.target
|
||
|
|
||
|
[Service]
|
||
|
User=minio
|
||
|
Group=minio
|
||
|
EnvironmentFile=/etc/default/minio
|
||
|
StartLimitInterval=5
|
||
|
StartLimitBurst=10
|
||
|
ExecStart=/usr/bin/minio server /var/lib/minio
|
||
|
PrivateTmp=true
|
||
|
PrivateDevices=true
|
||
|
ProtectHome=true
|
||
|
ProtectSystem=strict
|
||
|
WorkingDirectory=/var/lib//minio/
|
||
|
ReadWriteDirectories=/var/lib/minio/
|
||
|
Restart=always
|
||
|
RestartSec=10
|
||
|
|
||
|
[Install]
|
||
|
WantedBy=multi-user.target
|