sysvinit
Collection: builtin
Full Name: parallax.builtin.sysvinit
Aliases: ansible.builtin.sysvinit, sysvinit
Synopsis
Manage sysvinit
Parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| name | string | yes | Name of the service | |
| state | string | Desired state of the service Choices: started, stopped, restarted, reloaded | ||
| enabled | bool | Whether the service should be enabled to start on boot | ||
| arguments | string | Extra arguments provided on the command line to the init script | ||
| pattern | string | Pattern to match running process if the init script does not support status | ||
| runlevels | list | Run levels for the service to be enabled or disabled at | ||
| daemonize | bool | false | Daemonize the service process using start-stop-daemon | |
| sleep | int | 1 | Seconds to sleep between stop and start during a restart |
Example
- name: Example sysvinit task
sysvinit:
name: <your_name>