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

121 Commits

Author SHA1 Message Date
Bryan Roe
e581505ba9 Fixed bug with service.appWorkingDirectory() on freebsd 2021-02-09 20:19:57 -08:00
Bryan Roe
43c5f2d1b5 Updated service restart on Windows, when called from self. 2021-02-07 15:26:53 -08:00
Bryan Roe
face65a52e Added service.parameters() for macOS 2021-01-31 01:20:35 -08:00
Bryan Roe
d540fd64c8 Fixed service.restart() for self, for FreeBSD 2021-01-29 22:09:50 -08:00
Bryan Roe
464f756f6e Added service.parameters() for upstart and systemd 2021-01-29 19:42:49 -08:00
Bryan Roe
13a45a1116 Fixed bug/issue with systemd when trying to restart self 2021-01-29 12:18:12 -08:00
Bryan Roe
02aa37ca8f Fixed bug with systemd 'isRunning' 2021-01-29 11:59:34 -08:00
Bryan Roe
c3872d6ec8 1. Fixed execv(e)
2. Fixed service.restart() for OpenRC
2021-01-29 10:13:37 -08:00
Bryan Roe
acad58b731 Added workaround for rc-status bug 2021-01-28 17:49:36 -08:00
Bryan Roe
d664208b21 Fixed typo 2021-01-28 17:34:12 -08:00
Bryan Roe
c5e2b16e83 Added missing 'pid' setting for OpenRC 2021-01-28 17:21:51 -08:00
Bryan Roe
f67d632c4b Updated OpenRC support 2021-01-28 16:30:56 -08:00
Bryan Roe
40e91aa034 Added full support for OpenRC 2021-01-28 15:54:25 -08:00
Bryan Roe
ec2e11c875 Fixed auto_start and uninstall for opnsense 2021-01-26 11:04:15 -08:00
Bryan Roe
2c4b12fddf Fixed bug with service AUTO_START for pfsense/opnsense, where execute permission was missing from startup script 2021-01-25 22:15:57 -08:00
Bryan Roe
12230f8ce7 Updated installer to better support ChromeOS 2021-01-11 13:05:04 -08:00
Bryan Roe
949892a0eb Updated service manager for FreeBSD 2020-11-05 17:27:07 -08:00
Bryan Roe
935074ef4a Updated procd (openwrt) support 2020-11-05 14:25:26 -08:00
Bryan Roe
4eb89313c8 Updated systemd unit to correctly unescape ExecStart 2020-11-04 21:49:53 -08:00
Bryan Roe
db154bb044 Fixed support for UTF8 characters in install path, for init/upstart 2020-11-04 20:00:08 -08:00
Bryan Roe
aeef17e649 Added support for parallel installs, using alternative service names 2020-10-24 13:26:02 -07:00
Bryan Roe
67e3b3c118 Updated service-manager on windows to not require admin for service enumeration 2020-10-18 00:43:17 -07:00
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