diff --git a/images/supervisord/pelican_cache_serve.conf b/images/supervisord/pelican_cache_serve.conf new file mode 100644 index 000000000..b74cbcc93 --- /dev/null +++ b/images/supervisord/pelican_cache_serve.conf @@ -0,0 +1,28 @@ + +# +# Copyright (C) 2023, Pelican Project, Morgridge Institute for Research +# +# Licensed under the Apache License, Version 2.0 (the "License"); you +# may not use this file except in compliance with the License. You may +# obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +[program:pelican_cache_serve] +command=/pelican/osdf-client cache serve %(ENV_OSDF_CACHE_ARGS)s +autostart=false +autorestart=true +redirect_stderr=true +# We can run the cache with all args configured via our pelican.yaml +# or via individual environment variables, so this environment variable +# need not be populated. However, if we don't give it at least an empty +# var, supervisord won't expand it and there will be an error. Set the +# default to empty. +environment=OSDF_CACHE_ARGS=""