IBM / clai

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.
https://clai-home.mybluemix.net/
MIT License
475 stars 73 forks source link

Run Clai as a Daemon rather than a Background Process #55

Open andrewcmhicks opened 4 years ago

andrewcmhicks commented 4 years ago

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

  1. Clai uninstall no longer leaves the processes as zombies.