- updated: node-windows (fixes unsecure password storage in xml config file)
- added: support for pathprefix parameter (=value to use as a prefix for the PATH environment variable)
- fixed: broken error logging in pm2-service-install & pm2-service-uninstall
- improved: command-line formatting
- changed: call remove_previous_daemon even if try_confirm_kill failed
- changed: remove_previous_daemon no longer fails (only warns)
- added: failure logging for try_confirm_kill
- updated: node-windows
- added: some more logging to stop_and_uninstall_service
(this version never existed)
- removed: unnecessary long wait after service uninstall
- fixed: logging of install config
- fixed: some more logging
- fixed: description of stopparentfirst flag
- fixed: logging to file with timestamps
- maybe fixed?: shutdown message detection
- added: option to pass stopparentfirst flag in when installing
- fix: bugs in service.js
- changed: added unit logging.js
- changed: all logging functions from logging.js adding timestamps
- updated: node-windows
- added: some logging to install / uninstall
- fixed: attempted to start service twice after installed/alreadyinstalled events
- fixed: attempted to uninstall service twice from after stop/alreadystopped events
- updated: node-windows
- updated: shelljs (for Node 14.x compatibility)
- updated: node-windows
- added: parameter to specify executable name separately from service_id
- fixed: incorrect logFolder when SERVICEJS_LOGPATH is not specified
- added: append service name suffix to logfile
- fixed: tried to assign to const logpath
- fixed: cannot use null-coalescing operator (yet)
- added: use provided logpath for logging from service.js (via env.SERVICEJS_LOGPATH)
- updated: node-windows
- added: install params for account & password
- added: check if password is combined with account
- updated: node-windows
- added: support for workingdir param
- updated: node-windows
- removed: some unused require imports
- changed: (un)install now (un)installs service in PM2_HOME folder (node-windows creates "daemon" subfolder)
- fixed: uninstall now lets node-windows do the de-installation
- changed: poll frequency for service removal
- added: some logging for service removal polling
- updated: node-windows
- added: setEnv.bat (for testing)
- improved: command line syntax & feedback
- added: support for service recovery config (onFailure & resetFailure)
- changed: install now takes a config object (instead of many params)
- added: validation.js for parsing and validating params
- fixed: name was used for uninstall (now using id)
- fixed: PM2_HOME was referenced before checking
- added: some more logging
- changed: proper var names for service_id (not service_name)
- fixed: service name was stored in .sid file (now service id)
- fixed: ".exe" should not be appended to service id
- removed: workaround for single .sid file in APPDATA folder
- added: install now checks if PM2_HOME folder exists
- added: install now checks for PM2_SERVICE_PM2_DIR env var
- added: install now checks if PM2_SERVICE_PM2_DIR exists
- added: install now sets PM2_SERVICE_PM2_DIR for service
- changed: now using our own fork of node-windows
- changed: install/uninstall now use .sid file in PM2_HOME folder
- added: install sets PM2_HOME env var for service
- added: install checks if PM2_HOME env var is set
- changed: service name arg is now optional for uninstall (uses .sid file when not specified)
- updated: restored orignal README
- improved: command-line args handling
- changed: made service name arg required
- added: description & logpath args
- updated: dependencies
- added: some more logging and error handling
- changed: now configuring log rotation and logPath (pm2_home\logs)
- added: logging to pm2_home\logs from service.js
- added: start with stopparentfirst=true for graceful shutdown
- added: listening to shutdown message for graceful shutdown
- added: kill pm2 on service shutdown
- updated: node-windows and some other dependencies
- added: a little more logging
- fixed: work-around in
bin\pm2-service-uninstall
for uninstall issues when using multiple instances.
- fork from https://github.com/innomizetech/pm2-windows-service (which in trun was forked form https://github.com/jon-hall/pm2-windows-service)