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
Bryan Roe
d5962cd1b2
Modified service.stop() on Windows to use a promise, so you can verify the run state
2019-08-06 18:14:39 -07:00
Bryan Roe
0c7290723c
Optimized getService() on MacOS to use a property getter for some properties to speed things up when enumerating
2019-07-31 10:29:22 -07:00
Bryan Roe
8ffac90514
Implemented enumerateService for MacOS
2019-07-31 00:54:28 -07:00
Bryan Roe
7a319f4302
Implemented enumerateService() for Linux and FreeBSD
2019-07-30 23:47:43 -07:00
Bryan Roe
5a85f2dc47
add 'description' to getService() for init and upstart on linux
2019-07-30 17:30:36 -07:00
Bryan Roe
baffe1d115
Fixed bug with enumerateService()
2019-07-29 18:50:57 -07:00
Bryan Roe
804843eb32
Updated, so on INIT platforms when crash restart is specified, parameters can still be passed
2019-07-19 11:16:54 -07:00
Bryan Roe
5b7f892496
Udpated service-manager, so crash restart is supported on INIT platforms that are not UPSTART
2019-07-18 14:12:26 -07:00
Bryan Roe
134461448e
Added workaround for 'busybox' as service type
2019-07-16 15:12:52 -07:00
Bryan Roe
7745338d9e
added stop, start, restart, uninstallService for freebsd
2019-06-22 09:55:33 -07:00
Bryan Roe
a75e12b400
fixed indentation
2019-06-22 09:39:08 -07:00
Bryan Roe
894c4e7a7e
updated appLocation() for freebsd when daemon is used
2019-06-22 09:36:16 -07:00
Bryan Roe
dd8c16299c
first rev of service-manager update for freebsd
2019-06-22 02:24:39 -07:00
Bryan Roe
cfa22baf9c
fixed indentation
2019-06-21 17:43:27 -07:00
Bryan Roe
4d615ab955
fixed appWorkingDirectory() bug on freebsd
2019-06-21 17:38:03 -07:00
Bryan Roe
83fdcbc4b9
freebsd update
2019-06-21 17:35:57 -07:00