Search plugin: Or browse by category:

service summary

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 )

service documentation

service doc

SYNOPSIS

Manages Linux services.

The list of supported actions:

  • start
  • stop
  • restart
  • enable
  • disable

Prerequisites

  • For Debian, Ubuntu a chkconfig utility should be installed.
  • For Alpine linux an openrc should be installed.
  • For Funtoo an openrc should be installed.

INSTALL

$ sparrow plg install service

USAGE

Manually

$ 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 ...

Via Sparrowdo

$ 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' )
);

Parameters

service

A service name.

action

One of five: (enable|disable|start|stop|restart). Default value is enable. Should be set.

Platforms supported

  • Debian
  • Ubuntu
  • CentOS
  • Amazon Linux ( limited API, enable/disable actions are not yet supported )
  • Archlinux
  • Minoca
  • Funtoo

Author

Alexey Melezhik