Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/melezhik/service
Manages Linux services
https://github.com/melezhik/service
alpine-linux archlinux configuration-management debian fedora linux service sparrowdo ubuntu
Last synced: about 1 month ago
JSON representation
Manages Linux services
- Host: GitHub
- URL: https://github.com/melezhik/service
- Owner: melezhik
- Created: 2016-07-01T11:00:46.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-05-07T19:32:01.000Z (over 6 years ago)
- Last Synced: 2024-11-05T21:50:10.071Z (3 months ago)
- Topics: alpine-linux, archlinux, configuration-management, debian, fedora, linux, service, sparrowdo, ubuntu
- Language: Shell
- Size: 20.5 KB
- Stars: 1
- Watchers: 4
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: Changes.md
Awesome Lists containing this project
README
# 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](mailto:[email protected])