1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/minio_ynh.git synced 2024-09-03 19:46:18 +02:00
This commit is contained in:
ericgaspar 2022-01-30 16:38:06 +01:00
parent 1720b5ae1e
commit 0d59c7a8c2
No known key found for this signature in database
GPG key ID: 574F281483054D44
2 changed files with 19 additions and 5 deletions

View file

@ -1,6 +1,6 @@
MINIO_ROOT_USER=__APP__ MINIO_ROOT_USER=__APP__
MINIO_VOLUMES="__DATADIR__/" MINIO_VOLUMES="__DATADIR__/"
MINIO_OPTS="-C __FINAL_PATH__/ --address 127.0.0.1:__PORT__ --console-address :__CONSOLE_PORT__" MINIO_OPTS="-C __FINAL_PATH__/minio --address 127.0.0.1:__PORT__ --console-address :__CONSOLE_PORT__"
MINIO_ROOT_PASSWORD=__MINIO_KEY__ MINIO_ROOT_PASSWORD=__MINIO_KEY__
MINIO_ETCD_CLIENT_CERT="/etc/yunohost/certs/__DOMAIN__/crt.pem" MINIO_ETCD_CLIENT_CERT="/etc/yunohost/certs/__DOMAIN__/crt.pem"

View file

@ -1,16 +1,30 @@
[Unit] [Unit]
Description=A High Performance, Kubernetes Native Object Storage Description=MinIO
After=network.target Documentation=https://docs.min.io
Wants=network-online.target
After=network-online.target
AssertFileIsExecutable=__FINALPATH__/minio
[Service] [Service]
Type=simple Type=simple
User=__APP__ User=__APP__
Group=__APP__ Group=__APP__
ProtectProc=invisible
WorkingDirectory=__FINAL_PATH__/ WorkingDirectory=__FINAL_PATH__/
EnvironmentFile=__FINAL_PATH__/.env EnvironmentFile=__FINAL_PATH__/.env
ExecStart=__FINALPATH__/minio server $MINIO_OPTS $MINIO_VOLUMES ExecStart=__FINALPATH__/minio server $MINIO_OPTS $MINIO_VOLUMES
StandardOutput=append:/var/log/__APP__/__APP__.log # Let systemd restart this service always
StandardError=inherit Restart=always
# Specifies the maximum file descriptor number that can be opened by this process
LimitNOFILE=1048576
# Specifies the maximum number of threads this process can create
TasksMax=infinity
# Disable timeout logic and wait until process is stopped
TimeoutStopSec=infinity
SendSIGKILL=no
[Install] [Install]
WantedBy=multi-user.target WantedBy=multi-user.target