Bryan Roe
18f3e8b9b3
Updated service install/uninstall for pfSense/OPNsense, to fix AUTO_START
2020-09-28 19:06:09 -07:00
Bryan Roe
f332ddb59c
1. Fixed bug in windows installer when installing when agent already installed
...
2. Added verbose mode for installer
2020-09-17 17:30:16 -07:00
Bryan Roe
20d4345a87
1. Updated console.log to use snprintf to size buffer
...
2. Fixed code that was accidentally deleted from macOS service-manager
2020-09-17 12:49:12 -07:00
Bryan Roe
61b8c71e6a
Fixed init.d PID check
2020-09-10 10:49:26 -07:00
Bryan Roe
0f042fa34e
Fixed service installation for init.d
2020-09-10 01:08:04 -07:00
Bryan Roe
80158d42ea
1. Updated installer to support --installPath on most all platforms
...
2. Updated installer, so if service already exists, and installPath isn't specified, it will try to use the existing path.
2020-09-09 22:11:33 -07:00
Bryan Roe
cb364e8ec4
Fixed init.d service issue
2020-09-09 13:50:48 -07:00
Bryan Roe
beaadd09c6
Added procd support for installer
2020-08-20 23:19:04 -07:00
Bryan Roe
87991a34ab
Added initial support for procd service type
2020-08-20 17:48:46 -07:00
Bryan Roe
399e1cc9f3
Fixed service manager on freebsd to correctly parse PID when daemon is in use
2020-08-03 21:16:51 -07:00
Bryan Roe
557840e642
1. Fixed edge case bug with installPath on Windows Service Manager
...
2. Updated Agent installer to copy .proxy file if present at install time
3. Updated proxy check on Linux/Gnome to only call gsettings if home folder is present for given user
2020-06-25 16:59:30 -07:00
Bryan Roe
10bde8c328
1. Fixed typo with upstart service manager .conf definition
...
2. Added support for installedDate in service manager
3. Fixed compiler warnings
2020-06-25 12:34:56 -07:00
Bryan Roe
2ac6a1037d
Updated installer, so will still work if launched from same path as description
2020-06-06 18:15:03 -07:00
Bryan Roe
34908f8a1a
Updated service-manager.stop() on Windows to force kill process if stuck in STOP_PENDING
2020-06-04 11:27:35 -07:00
Bryan Roe
5bfd867e86
Fixed Working Directory for FreeBSD service definition
2020-06-04 01:54:06 -07:00
Bryan Roe
08bcfbfcc5
Updated service-manager.enumerateService() for Linux, to include state and pid if available
2020-06-03 12:48:49 -07:00
Bryan Roe
28e8a8db81
1. Updated default install path for Windows agent-installer
...
2. Fixed installer, so it doens't create an empty .db file
3. Updated uninstaller, so it deletes the folder if it's empty
2020-06-02 16:53:56 -07:00
Bryan Roe
b8007f227b
Added work-around for service-manager if %ProgramFiles(x86)% doesn't exist, to work around issue of Windows 7 erroneously returning IsWOW64
2020-05-28 15:26:54 -07:00
Bryan Roe
3816c47a58
1. Removed dead code from service-manager.js2.
...
2. Updated win-dispatcher to create task using command line parameters, instead of stdin, negating need to export/import XML to fix non-english characters
2020-05-01 11:30:50 -07:00
Bryan Roe
33c089e275
1. Updated so CachedOnly db is created when needed
...
2. Updated uninstall/fulluninstall to be able to self delete
2020-05-01 11:05:47 -07:00
Bryan Roe
a7a2b84a91
1. Updated -fullinstall -install -fulluninstall -install to use agent-installer
...
2. Fixed DPI awareness on Installer Dialog Box
2020-05-01 00:42:37 -07:00
Bryan Roe
cb95c0bbea
1. Fixed service-manager to include execute permission for user, fixing issue with Deepin Linux
...
2. Added os.Name property
2020-04-26 00:54:04 -07:00
Bryan Roe
cb991c17f0
Fixed docker container support
2020-04-24 23:00:21 -07:00
Bryan Roe
5fd96b36c3
Fixed typo in freebsd service path
2020-04-14 01:20:54 -07:00
Bryan Roe
7a1da84490
Fixed freebsd bug with installService()
2020-04-14 01:16:22 -07:00
Bryan Roe
b8208f63ed
Fixed Installer/Uninstaller
...
1. Remapped -fulluninstall to -funinstall
2. Updated behavior so db is not loaded if agent-installer is invoked
3. Renamed Windows Uninstaller from MeshCentralAgent to Mesh Agent for consistency
4. Update service-manager.installService(), such that if the service is the mesh agent, the windows uninstaller will invoke -fulluninstall
5. Updated agent-installer so that secondary agent and its scheduled tasks will be deleted on uninstall
6. Updated event-emitter, so if process.exit() is called on an emit(), it won't throw a catchable exception
2020-04-07 00:03:11 -07:00
Bryan Roe
908698fb68
Fixed uninstall logic for macOS
2020-02-26 11:25:01 -08:00
Bryan Roe
6f5f065eb5
1. Changed Array.includes polyfill to be nonenumerable, fixing potential problems when using for loops
...
2. Added uninstall helper
3. Fixed macOS bug on 'load' function
2020-02-25 23:32:21 -08:00
Bryan Roe
a9ef6d0f61
1. Fixed detached processes on Windows
...
2. Updated service-manager on Windows to add an uninstaller into Program Manager
3. Updated service-manager on Windows to try to delay spawn a process to delete a service, which is required if the service to be uninstalled is the currently running process.
2020-01-15 14:53:12 -08:00
Bryan Roe
bca47688ff
1. Added 'global' polyfill
...
2. Updated service-manager in Native and JS, to add '_installedBy' on Windows
2019-11-20 14:41:22 -08:00
Bryan Roe
340a16cfda
Updated installService for PSeudo Services, to copy extra files to the correct path
2019-10-21 16:29:27 -07:00
Bryan Roe
c7ba2f3b9b
Merge branch 'master' of https://github.com/Ylianst/MeshAgent
2019-10-21 10:29:12 -07:00
Bryan Roe
d39bbf40c2
Added support for mesh_daemon to enumerate and uninstall
2019-10-21 10:29:06 -07:00
Bryan Roe
a47c50646c
Updated usage description of 'daemon' tool
2019-10-19 00:05:27 -07:00
Bryan Roe
5cbbedb8aa
Fixed uncaught exception if PID file is already deleted when pseudo process is killed
2019-10-18 23:59:59 -07:00
Bryan Roe
001e4944d1
Hooked up respawn in pseudoservice config to daemon crashRestart
2019-10-18 23:54:09 -07:00
Bryan Roe
e23b090ced
Updated pseudo service, so daemon is a standalone tool to start/stop services
2019-10-18 23:19:28 -07:00
Bryan Roe
318d2eee1f
Updated, so if pseudo service logging is not set, to disable console.log
2019-10-18 20:53:48 -07:00
Bryan Roe
e491def440
1. Unified service type detection, between native and JS
...
2. Added basic support for pseudo services
2019-10-18 17:40:16 -07:00
Bryan Roe
1bd4cb3131
1. experimental/pseudo 'daemon' support added
2019-10-16 14:34:09 -07:00
Bryan Roe
92fe765c32
Fixed bug with service.isMe() for init and upstart linux
2019-09-13 14:41:19 -07:00
Bryan Roe
660aabb178
1. Added -b64exec
...
2. Updated service-manager on windows to ignore running state when uninstalling
2019-09-13 11:37:41 -07:00
Bryan Roe
48590a7dff
Added update() to getService() on Windows
2019-08-28 00:44:14 -07:00
Bryan Roe
e384a1a680
Added startType to getService() for MacOS
2019-08-27 11:19:12 -07:00
Bryan Roe
fd7a0a0f5b
Added startType property to getService() for Linux/systemd and FreeBSD
2019-08-27 11:04:43 -07:00
Bryan Roe
c983afdd4b
Added 'startType' property for getService result on Windows and Linux (Upstart/InitV)
2019-08-27 02:38:12 -07:00
Bryan Roe
b3accf17c1
Fixed typo, causing bug where service.conf wasn't committed when systemd tried to enable the service, resulting in the service not being configured to AUTO_START, when AUTO_START is specified.
2019-08-09 01:22:37 -07:00
Bryan Roe
9ae4eef5b7
1. Updated win-registry to be able to read REG_EXPAND_SZ types
...
2. Updated service-manager to support UTF8 on Windows
2019-08-08 17:32:58 -07:00
Bryan Roe
7e5ddc6767
Updated error reporting for service.restart() on windows
2019-08-07 16:26:08 -07:00
Bryan Roe
66273f8950
1. Updated waitExit() for windows to support a timeout
...
2. Updated ProcessPipe for Windows, to disable inheritance on detach
3. Updated service-manager to support restart on self for windows
2019-08-07 15:23:13 -07:00