add ansible_managed info

This commit is contained in:
paulfantom 2018-06-25 16:30:17 +02:00
parent 78956bfbdb
commit 4b1e72dd45
No known key found for this signature in database
GPG Key ID: 12AE0185401674E7
2 changed files with 12 additions and 0 deletions

View File

@ -9,6 +9,8 @@
# Description: Distributed object storage server built for cloud applications and devops. # Description: Distributed object storage server built for cloud applications and devops.
### END INIT INFO ### END INIT INFO
# {{ ansible_managed }}
# Do NOT "set -e" # Do NOT "set -e"
# PATH should only include /usr/* if it runs after the mountnfs.sh script # PATH should only include /usr/* if it runs after the mountnfs.sh script

View File

@ -1,3 +1,5 @@
# {{ ansible_managed }}
[Unit] [Unit]
Description=Minio Description=Minio
Documentation=https://docs.minio.io Documentation=https://docs.minio.io
@ -15,8 +17,12 @@ PermissionsStartOnly=true
EnvironmentFile={{ minio_server_envfile }} EnvironmentFile={{ minio_server_envfile }}
ExecStartPre=/bin/bash -c "[ -n \"${MINIO_VOLUMES}\" ] || echo \"Variable MINIO_VOLUMES not set in {{ minio_server_envfile }}\"" ExecStartPre=/bin/bash -c "[ -n \"${MINIO_VOLUMES}\" ] || echo \"Variable MINIO_VOLUMES not set in {{ minio_server_envfile }}\""
ExecStart={{ minio_server_bin }} server $MINIO_OPTS $MINIO_VOLUMES ExecStart={{ minio_server_bin }} server $MINIO_OPTS $MINIO_VOLUMES
# Let systemd restart this service only if it has ended with the clean exit code or signal.
Restart=on-success
StandardOutput=journal StandardOutput=journal
StandardError=inherit StandardError=inherit
@ -33,5 +39,9 @@ SendSIGKILL=no
SuccessExitStatus=0 SuccessExitStatus=0
{% if minio_server_addr.split(':')[1] < 1024 %}
AmbientCapabilities=CAP_NET_BIND_SERVICE
{% endif %}
[Install] [Install]
WantedBy=multi-user.target WantedBy=multi-user.target