mirror of
https://github.com/minio/minio.git
synced 2024-12-27 07:35:55 -05:00
41 lines
932 B
SYSTEMD
41 lines
932 B
SYSTEMD
|
[Unit]
|
||
|
Description=Minio
|
||
|
Documentation=https://docs.minio.io
|
||
|
Wants=network-online.target
|
||
|
After=network-online.target
|
||
|
AssertFileIsExecutable=/usr/share/minio/bin/minio
|
||
|
|
||
|
[Service]
|
||
|
WorkingDirectory=/usr/share/minio/
|
||
|
|
||
|
User=minio
|
||
|
Group=minio
|
||
|
|
||
|
PermissionsStartOnly=true
|
||
|
|
||
|
EnvironmentFile=-/etc/default/minio.conf
|
||
|
ExecStartPre=/bin/bash -c "[ -n \"${MINIO_VOLUMES}\" ] || echo \"Variable MINIO_VOLUMES not set in /etc/defaults/minio.conf\""
|
||
|
|
||
|
ExecStart=/usr/share/minio/bin/minio server $MINIO_OPTS $MINIO_VOLUMES
|
||
|
|
||
|
StandardOutput=journal
|
||
|
StandardError=inherit
|
||
|
|
||
|
# Specifies the maximum file descriptor number that can be opened by this process
|
||
|
LimitNOFILE=65536
|
||
|
|
||
|
# Disable timeout logic and wait until process is stopped
|
||
|
TimeoutStopSec=0
|
||
|
|
||
|
# SIGTERM signal is used to stop Minio
|
||
|
KillSignal=SIGTERM
|
||
|
|
||
|
SendSIGKILL=no
|
||
|
|
||
|
SuccessExitStatus=0
|
||
|
|
||
|
[Install]
|
||
|
WantedBy=multi-user.target
|
||
|
|
||
|
# Built for ${project.name}-${project.version} (${project.name})
|