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

133 Commits

Author SHA1 Message Date
Bryan Roe
5fd8d5fd3c Updated service-manager, so on systemd platforms, it does a systemctl --system daemon-reload after writing the service configuration. 2021-09-07 16:58:49 -07:00
Bryan Roe
c5e347335e Updated service-manager for systemd, to use full name of service when calling stop/start/restart/status 2021-09-07 16:44:58 -07:00
Bryan Roe
1ad21b6050 Fixed bug on some platforms, where execve() restart didn't set argv[0] correctly 2021-09-01 10:34:43 -07:00
Bryan Roe
e8c2d57af8 Updated OpenBSD service installer to set AUTO_START when flagged 2021-08-31 18:40:22 -07:00
Bryan Roe
c7d0a827e7 Fixed service uninstall cleanup, for OpenBSD 2021-08-31 18:25:52 -07:00
Bryan Roe
d4cdabef31 Updated PID handling for OpenBSD 2021-08-31 13:38:54 -07:00
Bryan Roe
294fc2f492 Updated pid handling for OpenBSD services 2021-08-31 13:08:25 -07:00
Bryan Roe
ca68a1e487 Updated OpenBSD service support 2021-08-31 13:03:15 -07:00
Bryan Roe
d1204de4c4 1. Fixed bug with clipboard.nativeAddCompressedModule for large files
2. Updated service-manager for better OpenBSD support
2021-08-31 11:11:31 -07:00
Bryan Roe
9fa19bf1be 1. Added getDomain() to user-sessions for windows
2. Fixed service.restart() error condition, to reject the promise
3. Fixed ServiceMain start/stop/restart/state for Windows
2021-04-20 15:02:54 -07:00
Bryan Roe
e5418181c3 1. Fixed bug with process.cwd() on windows when the cwd is a root level folder
2. Added process.chdir()
3. Updated child_process._execve() to use process.env if not specified
4. Updated service manager to work better with docker container
2021-02-10 20:25:46 -08:00
Bryan Roe
a4b3c7787b update service.appWorkingDirectory on macos 2021-02-10 02:53:48 -08:00
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