generic-service-handler

easy service handling

Usage no npm install needed!

<script type="module">
  import genericServiceHandler from 'https://cdn.skypack.dev/generic-service-handler';
</script>

README

Project status

npm version downloads build status dependencies development dependencies peer dependencies documentation website

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