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.
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
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