Skip to content

A simple cross-platform service to dump time stamp written by node.js.

Notifications You must be signed in to change notification settings

sammtcbn/tsdump.js

Repository files navigation

tsdump

A simple cross-platform service to dump time stamp written by node.js.

This is a very simple template project to demonstrate how to generate a Linux/Windows service. This project also aims to lanunch node.js application running as a service.

Windows

Install service on Windows

node-v12-executable-download.bat
nssm-download.bat
win_install_service.bat

Uninstall service on Windows

win_uninstall_service.bat

Service Control by nssm utility

nssm start tsdump
nssm stop tsdump
nssm restart tsdump
nssm status tsdump

Show current time stamp

type tsdump.log
1581323945

Linux

Install on Linux

$ sudo ./linux_install.bash

Uninstall from Linux

$ sudo ./linux_uninstall.bash

Service Control by systemctl

$ sudo systemctl start tsdump
$ sudo systemctl stop tsdump
$ sudo systemctl restart tsdump
$ sudo systemctl status  tsdump

Show current time stamp

$ cat /tmp/tsdump.log
1581323945

About

A simple cross-platform service to dump time stamp written by node.js.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published