1
0
mirror of https://github.com/Ylianst/MeshAgent synced 2025-12-15 15:53:55 +00:00
Commit Graph

123 Commits

Author SHA1 Message Date
Bryan Roe
0e67ee8f48 Updated service-manager on MacOS so it can accomodate naming inconsistency between plist and service name 2019-03-28 21:46:35 -07:00
Bryan Roe
f10497b4b0 Updated service-manager for MacOS:
1. Added start, stop, restart
2. Added isRunning, isMe
2019-03-28 21:21:53 -07:00
Bryan Roe
7fd2945b62 Starting to add 'getService' for MacOS 2019-03-28 18:11:13 -07:00
Bryan Roe
9148dbb1de service-manager update:
1. Added 'appWorkingDirectory()' to getService()
2. Fixed bug where init.d services didn't have working dir set
2019-03-28 16:44:33 -07:00
Bryan Roe
b54d09876c Updated service-manager:
1. Updated to allow specifying alternate target filename
2. Updated uninstallService, to use the application location specified by service, on linux and MacOS
3. Updated AppLocation on systemd to parse ExecStart
2019-03-27 22:45:47 -07:00
Bryan Roe
9c01623e55 Experimental 'reset' for heci 2019-03-27 15:13:26 -07:00
Bryan Roe
31be55c945 Fixed bug, where Packet Validation failed, because HttpStream was always configured as server. 2019-03-27 15:00:39 -07:00
Bryan Roe
ed18cb7944 1. Updated to use #define for maximum header size
2. Modified AsyncSocket_Disconnect, to shutdown SD_SEND/SHUT_RD, instead of RDWR/BOTH, because sent data could be lost if a reset was sent
3. Added hardening for http.server packet parsing
2019-03-26 22:10:29 -07:00
Bryan Roe
57a9de8a03 Updated service-manager:
1. Fixed bug with setting service description on Windows
2. Added ability to set failure restart options
2019-03-22 23:34:17 -07:00
Bryan Roe
45f5859f37 1. Added 'getEnvFromPid' to user-sessions, to read environment vars by PID
2 Updated getXInfo() in monitor-info, so it'll try to get XAUTHORITY from env vars is it can't determine it by looking at the XServer instance.
2019-03-15 12:48:30 -07:00
Bryan Roe
0048acf128 Updated to only use fs.Watch if it exists 2019-03-14 15:41:10 -07:00
Bryan Roe
6352c35e22 Updated, so on upstart platforms, it uses initctl instead of service, to fix problems on older upstart platforms that don't map service to initctl. 2019-03-14 02:53:44 -07:00
Bryan Roe
3c694116e6 Updated dispatchWrite 2019-03-14 02:05:53 -07:00
Bryan Roe
d4a1a4545d Added finalizer for DescriptorEvents. 2019-03-13 18:05:20 -07:00
Bryan Roe
6a8b7de44c 1. Updated monitor-info, so it no longer assumes DISPLAY = :0
2. Updated user-sessions to have better uid and username helpers on linux
3. Updated Clipboard dispatching
2019-03-12 22:25:56 -07:00
Bryan Roe
429b645a54 1. Added ability to modify environment variables on ScriptContainers
2. Fixed bug, where child ScriptContainer would exit if return value had a JSON parse error
2019-03-12 22:23:30 -07:00
Bryan Roe
499da726c5 Added code to fetch details about the XServer 2019-03-11 23:35:19 -07:00
Bryan Roe
8fbb54d79e Fixed CreateVariable, so if a negative number is specified, it throws an exception, instead of critical exiting 2019-03-09 00:44:36 -08:00
Bryan Roe
37f4a5af3f 1. Integrated win-message-pump on windows
2. Updated clipboard to dispatch read/write to a user process
2019-03-06 22:58:23 -08:00
Bryan Roe
2a8347be26 Added 'isMe' to service object for linux 2019-03-06 16:39:18 -08:00
Bryan Roe
9ffefcdd09 integrated task-scheduler 2019-03-06 15:21:04 -08:00
Bryan Roe
75b55823ef 1. Added '.manager' singleton to service-manager.js
2. Updated fs.writeFileSync to support options.mode
3. Updated Linux Task Scheduler
2019-03-06 15:09:45 -08:00
Bryan Roe
0dc02d1495 Updated default service type to manual on Windows. Updated, to add ability to copy dependency files, using a different name 2019-03-05 15:50:28 -08:00
Bryan Roe
496a0b7508 1. integrated service-host
2. Fixed bug where windows service didn't delete the binary on uninstall
2019-03-05 14:59:44 -08:00
Bryan Roe
e9676388ec Fixed bug, where cguid was set whenever agent was connected, rather than only for agent db 2019-03-05 14:58:49 -08:00
Bryan Roe
5fbcf23045 Added '-nodeid' command switch, to display Agent Node ID 2019-03-05 10:51:57 -08:00
Bryan Roe
0ad37730c0 Updated wget, to support options 2019-03-04 23:54:58 -08:00
Bryan Roe
268b0dd26f 1. Fixed compiler warning
2. Fixed bug where process.arch wasn't defined
3. Integrated PE_Parser on windows
2019-03-04 18:24:07 -08:00
Bryan Roe
c8c366ff5a Fixed compiler warning 2019-03-04 18:22:51 -08:00
Bryan Roe
a7544b6b7a added filehash helper 2019-03-04 17:10:00 -08:00
Bryan Roe
b2cdfe38a5 1. Fixed compiler warning
2. Added appLocation() to service-manager
2019-03-04 15:58:35 -08:00
Bryan Roe
ee63b099ec 1. Updated clipboard/native polyfill, to workaround 16k string literal limit
2. Integrated service-manager, user-sessions, and process-manager
2019-03-04 14:30:53 -08:00
Bryan Roe
adbff6baf8 1. Added Buffer helper method
2. Added Certificate helper method
2019-03-02 19:27:39 -08:00
Bryan Roe
c130fb9d89 Fixed bug that caused crash if you tried to attach a debugger when the module is missing 2019-03-01 13:36:50 -08:00
Bryan Roe
7b74feade5 1. Fixed bug that caused tls.error event to be emitted incorrectly
2. Fixed IPv6 Support for Linux
2019-03-01 13:19:14 -08:00
Bryan Roe
4c05359e33 Fixed how the request transform stream buffers data 2019-03-01 10:26:04 -08:00
Bryan Roe
83bb49fcc1 Fixed crash in finalizer on linux, that could occur in an error condition 2019-02-26 16:13:38 -08:00
Bryan Roe
2633fc2928 Fixed bug in Domain Socket detection logic on linux 2019-02-26 15:59:38 -08:00
Bryan Roe
623983b3d4 Fixed crash that can occur on linux if an error occurs 2019-02-26 15:59:15 -08:00
Bryan Roe
382ea03135 Updated file access, so the db can be queried while an agent is still active 2019-02-25 21:43:48 -08:00
Bryan Roe
683852f70a Fixed bug, where hook handler was always NULL when it was checked 2019-02-22 10:14:21 -08:00
Bryan Roe
cefd3018d9 1. Added more cleanup for signal handlers
2. Updated, so signal is only registered if there are listeners on the event
2019-02-20 18:22:15 -08:00
Bryan Roe
176facc799 Updated 'newListener' and 'hookedEvent', to follow node, so that it is emitted before the listener is added 2019-02-20 18:21:35 -08:00
Bryan Roe
32f8179137 Added cleanup for signal descriptor 2019-02-20 16:02:37 -08:00
Bryan Roe
f6762fd724 1. Added SIGTERM even for linux/macos
2. Hooked up 'serviceStop' event for linux/macos
2019-02-20 15:55:06 -08:00
Bryan Roe
5da959c16a 1. Added metadata to _GenericMarshal
2. Added BootStrapCore functionality
2019-02-18 21:45:58 -08:00
Bryan Roe
ec112d2d22 Fixed compiler warning 2019-02-15 13:53:55 -08:00
Bryan Roe
a9cb689ec3 Removed dead code, and added 'eventNames' 2019-02-15 00:48:57 -08:00
Bryan Roe
2f657f31e5 1. Updated 'addMethod' on emitter, to return this, so you can chain multiple together
2. Updated wget return value to expose an 'abort' event
2019-02-13 16:05:51 -08:00
Bryan Roe
76fac42a5f Added 'abort' to wget and clientRequest 2019-02-13 15:57:32 -08:00