Plugin Name: service |
Version: 0.2.0 |
Author: @melezhik |
Realease Date: 2018-05-07 22:30:33 |
Short Description: Manages Linux services |
Category: sparrowdo |
Plugin web page: https://github.com/melezhik/service |
Download link: service-v0.002000.tar.gz |
Latest version link: https://sparrowhub.org/info/service |
# 0.2.0 Funtoo support - https://github.com/melezhik/service/issues/2 # 0.1.15 Fix for ocassional bug # 0.1.14 Minoca OS *full* support ( enable / disable service ) # 0.1.12-13 Minoca OS support ( partly ) |
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.