Created
March 3, 2018 18:19
-
-
Save ohnotnow/8953cf7deb42a9f7a7fbe02f25090b43 to your computer and use it in GitHub Desktop.
Minio systemd for rpi
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# /storage/.config/system.d/minio.service | |
[Unit] | |
Description=minio server | |
# if we do network mounts like here we *require* 'network-online.service' | |
# which checks if the network is online | |
Requires=network-online.service | |
# our scripts must start *after* 'network-online.service', on timeout and if | |
# 'network-online.service' fails we can not mount and this scripts fails too | |
After=network-online.service | |
# usually we mount networks shares because we want they avaible *before* XBMC starts. | |
# so XBMC has access to this mounts from beginning. Note: this slows down the boot! | |
# Before=kodi.service | |
[Service] | |
Type=simple | |
Requires=network-online.service | |
After=network-online.service | |
ExecStart=/storage/minio server /var/media/SANDISK | |
Restart=always | |
RestartSec=15 | |
[Install] | |
# The target is used by 'systemctl enable <name_of_this_file.mount>' to link | |
# this service to a runlevel for starting on boot. usually 'multi-user.target' | |
# is ok here. | |
WantedBy=multi-user.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment