Upstart is an event-based replacement for the /sbin/init daemon which handles starting of tasks and services during boot, stopping them during shutdown and supervising them while the system is running.
upstart_runtime_root(string) - Directory for runtime dataupstart_pidfile_path(string) - Path for pidfileupstart_user(string) - User to run asupstart_group(string) - Group to run asupstart_name(string) - Name of the processupstart_description(string) - Description of the processupstart_start_on(list) - Events to start onupstart_stop_on(list): - Events to stop onupstart_file_descriptor_limit(integer) - File descriptor limit for the processupstart_environment(list) - Environment dataupstart_pre_start(list) - Commands to run prior to startingupstart_post_stop(list) - Commands to run after stoppingupstart_script(list) - Script to runupstart_exec_path(string) - A single command to executeupstart_exec_flags(list) - Parameters to be passed to the commandupstart_log_root(string) - Directory for logsupstart_log_path(string) - Path for log fileupstart_capture_errors(boolean) - Redirect STDERR to STDOUT?
- hosts: servers
roles:
- role: colstrom.upstart
upstart_name: nginx
upstart_user: www-data
upstart_start_on:
- startup
upstart_stop_on:
- shutdown
- Chris Olstrom | e-mail | Twitter
- Aaron Pederson
- Justin Scott
- Steven Harradine