generic-service-handler

easy service handling


Keywords
bash, service, handler, start, stop, status, script
License
CC-BY-3.0
Install
npm install generic-service-handler@1.0.6

Documentation

Build Status

Use case

This module provides generic service handling for each program supporting standard process signals. It's inspired by the systemd service handling workflow and can easily used in any Unix environment like debian, ubuntu, gentoo or cygwin. In general you only have to replace the word "generic" to your specific application name (in file name and in fie content) to start.

Usage

Print usage message:

./genericServiceHandler.sh

Start service:

./genericServiceHandler.sh start

Show the last 40 lines of standard and error output:

./genericServiceHandler.sh status

Stop service:

./genericServiceHandler.sh stop

Restart service:

./genericServiceHandler.sh restart