Skip to content

a node module that starts, stops and monitors systemd deamons

License

Notifications You must be signed in to change notification settings

PsyTae/systemd-mon

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

systemd-mon

A sophisticated wrapper for systemd's systemctl/journalctl

Watch / Start / Stop systemd services

Instructions for installing systemd


npm i systemd-mon
Usage:
var systemd = require("systemd-mon");

var deamon1 = systemd.watchDeamon('yourservicename.service');
var watch1 = deamon1.watch();

watch1.on('active', function(data){
        console.log('active', data);
});

watch1.on('inactive', function(data){
        console.log('inactive', data);
});

watch1.on('activating', function(data){
        console.log('activating', data);
});

watch1.on('deactivating', function(data){
        console.log('deactivating', data);
});

watch1.on('error', function(err){
        console.error(err);
});
Authors:

Rowan H, Shaun B, Noah B

About

a node module that starts, stops and monitors systemd deamons

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%