Skip to content

gtrl/gtrl-service

Repository files navigation

GTRL

Sensor data logging service.

Build/Install

## Install required npm packages
npm install

## Build service
make

## Install as linux service
make install

Usage

node service.js --help
Usage : gtrl <cmd> [params]
[backup | bak] <dir>   : Backup log.db
[--config | -c] <path> : Path to config file
[--setup | -s] <path>  : Path to setup file
[--help | -help | -h]  : Print usage

Service

Start service

systemctl start gtrl.service

Show log

journalctl -u gtrl

Follow log

journalctl --follow -u gtrl