cable-service/minio.service

41 lines
863 B
SYSTEMD
Raw Permalink Normal View History

2017-01-26 20:38:30 +01:00
[Unit]
2017-02-01 22:14:05 +01:00
Description=Minio
Documentation=https://docs.minio.io
Wants=network-online.target
After=network-online.target
2017-01-26 20:38:30 +01:00
[Service]
2017-02-01 22:14:05 +01:00
WorkingDirectory=/home/cable/minio/
EnvironmentFile=-/home/cable/minio/minio.env
ExecStartPre=/bin/bash -c "[ -n \"${MINIO_VOLUMES}\" ] || echo \"Variable MINIO_VOLUMES\""
ExecStart=/home/cable/minio/minio server $MINIO_OPTS $MINIO_VOLUMES
2017-01-26 20:38:30 +01:00
User=cable
Group=cable
2017-02-01 22:14:05 +01:00
PermissionsStartOnly=true
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
Restart=on-failure
2017-01-26 20:38:30 +01:00
[Install]
WantedBy=multi-user.target
2017-02-01 22:14:05 +01:00
# Built for ${project.name}-${project.version} (${project.name})