upstart
: This class allows you to configure the upstart init files Unless otherwise noted, the variables passed to this class set up ``/etc/sysconfig
upstart::job
: This define allows you to manage upstart jobs in /etc/init. See init(5) for more information. All variables lacking comments come directly f
upstart::validate_sys_limit
: Validate the initial system resource limits for a job's processes See init(5) for more information.
This class allows you to configure the upstart init files
Unless otherwise noted, the variables passed to this class set up
/etc/sysconfig/init
This only sets security-relevant options. You'll need to use the augeas provider to prod different values in the target file but this provides a good example.
- See also
- init(8)
The following parameters are available in the upstart
class:
Data type: Boolean
If true, includes SIMP's ::auditd class and then adds upstart audit rule
Default value: simplib::lookup('simp_options::auditd', { 'default_value' => false })
This define allows you to manage upstart jobs in /etc/init.
See init(5) for more information. All variables lacking comments come directly from init(5)
The following parameters are available in the upstart::job
defined type:
start_on
main_process_type
main_process
pre_start_type
pre_start
post_start_type
post_start
pre_stop_type
pre_stop
post_stop_type
post_stop
stop_on
default_env
env_export
is_task
respawn_limit
normal_exit
instance_name
description
doc_version
emits
console
nice
oom
chroot
chdir
sys_limit
kill_timeout
expect_stop
expect_daemon
expect_fork
respawn
author
umask
Data type: String
The set of events that will cause the job to be automatically started.
Data type: Upstart::Process
The type of the main process, may be one of 'exec' or 'script'.
Default value: 'exec'
Data type: Optional[String]
The content of the main process.
Default value: undef
Data type: Upstart::Process
The type of the pre-start script, may be one of 'exec' or 'script'.
Default value: 'exec'
Data type: Optional[String]
The content of the pre-start stanza.
Default value: undef
Data type: Upstart::Process
The type of the post-start script, may be one of 'exec' or 'script'
Default value: 'exec'
Data type: Optional[String]
The content of the post-start stanza.
Default value: undef
Data type: Upstart::Process
The type of the pre-stop script, may be one of 'exec' or 'script'
Default value: 'exec'
Data type: Optional[String]
The content of the pre-stop stanza.
Default value: undef
Data type: Upstart::Process
The type of the post-stop script, may be one of 'exec' or 'script'
Default value: 'exec'
Data type: Optional[String]
The content of the post-stop stanza.
Default value: undef
Data type: Optional[String]
The set of events that will cause the job to be automatically stopped.
Default value: undef
Data type: Optional[String]
Corresponds to the 'env' keyword.
Default value: undef
Data type: Optional[String]
Corresponds to the 'export' keyword.
Default value: undef
Data type: Boolean
Corresponds to the 'task' keyword.
Default value: false
Data type: Optional[Array[Integer,2,2]]
An array containing two integers corresponding to 'count' and 'interval' for the 'respawn limit' keyword.
Default value: undef
Data type: Optional[Array[String]]
An array of exit statuses and/or signals that indicate tat the job has terminated successfully.
Default value: undef
Data type: Optional[String]
The 'instance' keyword.
Default value: undef
Data type: Optional[String]
The description of the job.
Default value: undef
Data type: Optional[String]
The jversion information about the job. Maps to the 'version' keyword.
Default value: undef
Data type: Optional[Array[String]]
An array of arbitrary events to emit.
Default value: undef
Data type: Optional[Upstart::Console]
Option to connect standard input, output, and error to /dev/console. Value may be 'output' or 'owner'.
Default value: undef
Data type: Optional[Integer]
The process's nice value.
Default value: undef
Data type: Optional[String]
The OOM killer setting.
Default value: undef
Data type: Optional[Stdlib::Absolutepath]
The directory underneath which the process will be run in a chroot.
Default value: undef
Data type: Optional[Stdlib::Absolutepath]
The directory to be the root of the chroot instead of the root of the filesystem.
Default value: undef
Data type: Optional[Array[String, 3, 3]]
Maps to the 'limit' keyword. Accepts a three item array of values that should be 'LIMIT','SOFT', and 'HARD' respectively.
Default value: undef
Data type: Optional[Integer]
The interval between sending the job's main process the SIGTERM and SIGKILL signals when stopping the running job.
Default value: undef
Data type: Boolean
Maps to 'expect stop'.
Default value: false
Data type: Boolean
Maps to 'expect daemon'.
Default value: false
Data type: Boolean
Maps to 'expect fork'.
Default value: false
Data type: Boolean
Default value: false
Data type: Optional[String]
Default value: undef
Data type: Simplib::Umask
Default value: '022'
Type: Ruby 4.x API
Validate the initial system resource limits for a job's processes
See init(5) for more information.
Validate the initial system resource limits for a job's processes
See init(5) for more information.
Returns: Any
true in validation succeeds
Raises:
upon
any validation failure
Data type: Optional[Array[String, 3, 3]]
3-tuple containing the limit name, soft limit, and hard limit
The Upstart::Console data type.
Alias of Enum['output', 'owner']
The Upstart::Process data type.
Alias of Enum['exec', 'script']