A runit_service compatible implementation for s6 supervision trees including logging.
See https://github.com/heavywater/chef-s6/blob/master/recipes/examples.rb for an example
- Publish Heavy Water public signed APT repository with S6 packages, consume those in a "package" recipe
- Pennyworth-built package integration
Installs and sets up s6 on the system, builds from source, statically compiles slashpackage convention style to the root of the filesystem.
The definition in this cookbook will be deprecated by an LWRP in a future version. See Roadmap.
name- Name of the service. This will be used in the template file names (see Usage), as well as the name of the service resource created in the definition.
directory- the directory where the service's configuration and scripts should be located. Default is
only_if- unused, will be removed in a future version (won't be present in lwrp). Default is false.
finish_script- if true, a finish script should be created. Default is false.
active_directory- used for user-specific services. Default is
owner- userid of the owner for the service's files, and should be used in the run template with chpst to ensure the service runs as that user. Default is root.
group- groupid of the group for the service's files, and should be used in the run template with chpst to ensure the service runs as that group. Default is root.
template_name- specify an alternate name for the templates instead of basing them on the name parameter. Default is the name parameter.
options- a Hash of variables to pass into the run and log/run templates with the template resource
variablesparameter. Available inside the template(s) as
@options. Default is an empty Hash.
Create templates for
sv-myservice-log-run.erb that have the commands for starting
myservice and its logger.
License and Author
Copyright:: 2012, AJ Christensen email@example.com Copyright:: 2008-2011, Opscode, Inc
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
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.