Manages Linux services.
The list of supported actions:
chkconfig
utility should be installed.openrc
should be installed.openrc
should be installed.$ sparrow plg install service
$ sparrow plg run service --param service=nginx --param action=enable
$ sparrow plg run service --param service=nginx --param action=start
$ sparrow plg run service --param service=nginx --param action=stop
$ # so on ...
$ cat sparrowfile
task_run %(
task => 'enable nginx service',
plugin => 'service',
parameters => %( action => 'enable', service => 'nginx' )
);
task_run %(
task => 'start nginx service',
plugin => 'service',
parameters => %( action => 'start', service => 'nginx' )
);
A service name.
One of five: (enable|disable|start|stop|restart)
. Default value is enable
. Should be set.