Compare commits

...

47 Commits

Author SHA1 Message Date
idk
f79dfb8d8a Merge branch 'master' of i2pgit.org:i2p-hackers/i2p.i2p into shellservice 2021-11-18 20:42:53 -05:00
idk
e8c5f59fd9 Add my plugin keys 2021-11-16 13:52:41 -05:00
idk
9daed472e9 Remove unnamed client check from ShellService constructor. Document quirks around $PLUGIN usage 2021-11-16 13:27:03 -05:00
idk
59ec80fea3 Code review changes 2021-11-16 11:09:45 -05:00
idk
83984d43c1 Document ShellService quirks 2021-11-15 10:32:16 -05:00
idk
eeae8107a1 fix and re-organize imports 2021-11-15 09:00:45 -05:00
idk
24052d29fa move the ShellService to net.i2p.app 2021-11-11 20:52:46 -05:00
idk
b29bae0cc4 Try only shutting down with runClientApps when client == null. Attempt 1 of 2. 2021-11-11 16:08:08 -05:00
idk
e353f7677e Uninitialized is not correct there either 2021-11-10 11:07:36 -05:00
idk
df0f454d6d Always change state to STOPPED if getState is called and pid returns no process 2021-11-09 18:47:23 -05:00
idk
d25214657d Try an ensure that the registration is in sync with the tracker. I'm not sure this will work. 2021-11-08 14:28:32 -05:00
idk
045c640643 make PLUGIN_DIR private static final 2021-11-07 18:24:46 -05:00
idk
05cb53e058 Set the working directory of the ProcessBuilder to the $PLUGIN directory 2021-11-07 18:19:36 -05:00
idk
73e93fc013 Set the working directory of the ProcessBuilder to the $PLUGIN directory 2021-11-07 18:17:28 -05:00
idk
857e150af8 Fix messaging and ClientAppState on some of the notify calls. Notify the RAM of the client's stopped state and unregister if stop is reached in getState. 2021-11-07 15:18:59 -05:00
idk
2b320c36fe Only do the setExecutable on Unixes 2021-11-06 20:36:18 -04:00
idk
407a1f6b38 Ensure that unzipped files launched by the ShellService are executable when they're launched. If the plugin was zipped with a zip implementation that doesn't support attributes then the executable file in the plugin will not be executable. 2021-11-06 20:23:28 -04:00
idk
3706351964 Replace String=>StringBuilder in scriptArgs 2021-11-06 12:19:46 -04:00
idk
bb3a5c5726 Ditch the static _shellCommand in favor of per-function _shellCommands 2021-11-05 15:36:38 -04:00
idk
a29cc20d67 Report crashes when it's not possible to write the script, query the PID(I think) 2021-11-05 13:37:03 -04:00
idk
8c326bc70f Don't use a static map to store the PID anymore 2021-11-04 15:28:33 -04:00
idk
155690ac79 Make it also shutdown a registered ShellService 2021-11-04 15:23:24 -04:00
idk
a37fba496d Or, yah know, just use getRegisteredApp like a normal person 2021-11-04 12:41:42 -04:00
idk
ce32cde191 Look up the client app with the full classname and all the arguments 2021-11-04 12:14:16 -04:00
idk
6944c5c60f No point doing to null check on _cmgr there, just register for now 2021-11-02 20:48:36 -04:00
idk
dbac023c76 Register the application and attempt to check the PID of the ShellService by name in PluginStarter.java again 2021-10-31 13:42:22 -04:00
idk
64631bd26c Remove unnecessary PID file missing log messages 2021-10-30 09:58:15 -04:00
idk
bd19abf40e Don't catch the startup stuff 2021-10-30 00:36:24 -04:00
idk
b408ac59b6 Don't store the PID in the filesystem anymore 2021-10-29 23:40:34 -04:00
idk
a48cc5847c Switch to ShellCommands instead of runtime.exec 2021-10-26 12:07:18 -04:00
idk
388d75f621 ShellService: notify based on what we just did 2021-10-14 00:04:10 -04:00
idk
a0ab27491c ShellService: notify fixes, delete the scripts when they're no longer needed 2021-10-13 23:42:47 -04:00
idk
33c7ff8719 ShellService: remove calls to System.exit(0) 2021-10-13 22:38:08 -04:00
idk
eb0ea10511 ShellService: style changes, implement ClientApp, fix scope of _logs, _cmgr 2021-10-13 22:30:46 -04:00
idk
4c0f88b3b5 Fix up comments and add javadoc, clean up tabs->spaces, document checkPidOfProcess usage in PluginStarter 2021-10-11 11:59:50 -04:00
idk
439ce2a5ab Check in PluginStarter changes for ShellService 2021-10-09 23:29:51 -04:00
idk
5021b0c6cf Check in PluginStarter changes for ShellService 2021-10-09 23:27:23 -04:00
idk
602b8b1c93 check if plugin is running before attempting a start 2021-09-26 01:15:08 -04:00
idk
45c0a37ad7 ShellService is now capable of launching a process, keeping track of it's PID, checking it's status, and notifying the ClientAppManager on Windows and Linux 2021-09-22 01:15:55 -04:00
idk
86e7c7f4ff Merge branch 'master' of i2pgit.org:i2p-hackers/i2p.i2p into shellservice 2021-09-21 19:02:21 -04:00
idk
854c3b07d1 ShellService that notifies the ClientAppManager during startup and shutdown 2021-09-14 16:22:01 -04:00
idk
8384a8b735 Add stopping, notification to shell service 2021-09-08 23:26:38 -04:00
idk
fc7fe2e472 launch process with shellservice 2021-09-08 11:14:17 -04:00
idk
64f3ed3dfa Merge branch 'master' of 127.0.0.1:i2p-hackers/i2p.i2p into shellservice 2021-09-06 20:25:44 -04:00
idk
dc23ac97da Use accessors instead of the private variable 2021-07-15 15:23:21 -04:00
idk
51b5f4bf76 Check PID of Windows process in ShellService immediately after the process is started 2021-07-15 10:38:06 -04:00
idk
013cb5e2fa Start working on a ShellService class which can wrap shell commands and keep track of whether they are running 2021-07-14 18:39:12 -04:00

Diff Content Not Available