Command Line Artificial Intelligence or CLAI is an open-sourced project from IBM Research aimed to bring the power of AI to the command line interface.
Feature description
Currently, clai.sh starts the server as a background process. This becomes an issue when attempting to uninstall the program, the processes are not shutdown but instead the source code directory is removed. This leaves the processes as zombies. To properly handle running the processes we can create a Daemon class that records the PID on startup. The PID can then be referenced later for shutting down.
Acceptance criteria
Clai uninstall no longer leaves the processes as zombies.
Feature description Currently, clai.sh starts the server as a background process. This becomes an issue when attempting to uninstall the program, the processes are not shutdown but instead the source code directory is removed. This leaves the processes as zombies. To properly handle running the processes we can create a Daemon class that records the PID on startup. The PID can then be referenced later for shutting down.
Acceptance criteria