Minio – Let’s build a service file

Reading Time: < 1 minute

Last Updated: 5/15/2024

Let’s Build a Service File:

It may be the case that you will want to install this as a service. For a linux based system the easiest way to do this might be to simply create an entry for the service.

cat <<EOF | sudo tee /etc/systemd/system/minio.service
[Unit]
Description=minio
[Service]
WorkingDirectory=/home/minio
ExecStart=/home/minio/minio server /minio
EOF

Time to reload the daemon; start the service and then inquire as to its status.

sudo systemctl daemon-reload
sudo systemctl stop minio.service
sudo systemctl start minio.service
sudo systemctl restart minio.service
sudo systemctl status minio.service

If looking for certs on system where you are running this as root. The certs would be viewed from the /root/.minio directory.


root@s3:~/.minio/certs# ls -al
total 20
drwx------ 3 root root 4096 May 15 21:52 .
drwx------ 3 root root 4096 May 15 19:59 ..
drwx------ 2 root root 4096 May 15 19:59 CAs
-rw------- 1 root root  241 May 15 21:52 private.key
-rw-r--r-- 1 root root  676 May 15 21:52 public.crt