blob: ec6b18825f47397a66246a69dc4b379b52d979b6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
#!/sbin/openrc-run
name='Minio Block Storage Server'
command=/usr/bin/minio
command_args="server \
${address:+--address=$address} \
$MINIO_OPTS \
$MINIO_VOLUMES"
command_background=true
command_user="minio:minio"
pidfile="/run/${RC_SVCNAME}.pid"
start_pre() {
# the conf.d file might contain secrets!
[ -f "/etc/conf.d/${RC_SVCNAME}" ] && checkpath --file --mode 0600 --owner root:root "/etc/conf.d/${RC_SVCNAME}"
# make sure the default volume exists
checkpath --directory --mode 0700 --owner minio:minio "/srv/${RC_SVCNAME}"
}
|