[net-fs/minio] resurrect, probably builds, untested, inspiration from net-fs/mc
This commit is contained in:
4
net-fs/minio/files/minio.default
Normal file
4
net-fs/minio/files/minio.default
Normal file
@@ -0,0 +1,4 @@
|
||||
MINIO_ACCESS_KEY="minio"
|
||||
MINIO_VOLUMES="/var/lib/minio"
|
||||
MINIO_OPTS="-C /etc/minio --address 127.0.0.1:9000"
|
||||
MINIO_SECRET_KEY="miniostorage"
|
||||
11
net-fs/minio/files/minio.initd
Normal file
11
net-fs/minio/files/minio.initd
Normal file
@@ -0,0 +1,11 @@
|
||||
#!/sbin/openrc-run
|
||||
# Copyright 2016-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
description="Minio Object Storage Server"
|
||||
pidfile=${pidfile:-"/run/${SVCNAME}.pid"}
|
||||
command="/usr/bin/minio"
|
||||
command_args="${command_args:-server /var/lib/minio}"
|
||||
command_background="true"
|
||||
start_stop_daemon_args="--stdout /var/log/${SVCNAME}.log \
|
||||
--stderr /var/log/${SVCNAME}.log"
|
||||
30
net-fs/minio/files/minio.service
Normal file
30
net-fs/minio/files/minio.service
Normal file
@@ -0,0 +1,30 @@
|
||||
[Unit]
|
||||
Description=MinIO
|
||||
Documentation=https://docs.min.io
|
||||
Wants=network-online.target
|
||||
After=network-online.target
|
||||
AssertFileIsExecutable=/usr/bin/minio
|
||||
|
||||
[Service]
|
||||
User=minio
|
||||
Group=minio
|
||||
|
||||
EnvironmentFile=/etc/default/minio
|
||||
ExecStartPre=/bin/sh -c "if [ -z \"${MINIO_VOLUMES}\" ]; then echo \"Variable MINIO_VOLUMES not set in /etc/default/minio\"; exit 1; fi"
|
||||
|
||||
ExecStart=/usr/bin/minio server $MINIO_OPTS $MINIO_VOLUMES
|
||||
|
||||
# Let systemd restart this service always
|
||||
Restart=always
|
||||
|
||||
# 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=infinity
|
||||
SendSIGKILL=no
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
||||
# Built for ${project.name}-${project.version} (${project.name})
|
||||
Reference in New Issue
Block a user