A program for keeping all your applications alive in the background, similar to PM2.
For building and running, Java 21+ is required. Other than that, you don’t need anything else.
This describes the general usage of Carpool.
For clarity, carpool will refer to the executable in the following examples
Starting and stopping
carpool -start
carpool -stop
# NOTE: if the -log_level flag is used
# with -start, the log level will be
# set for the supervisor daemon as well
carpool -log_level=FINE -startStatus
carpool -statusNOTE: the daemon must be started to use these
Adding and removing
carpool -add_service="./some-executable --args"
carpool -remove_service=<pid>Listing
carpool -list_servicesConfiguration is done via flags in the CLI’s arguments.
-port(default1099) – specifies the port of the RMI registry-log_directory(default./logs/) – specifies the directory to place logs in-log_level(defaultLevel.INFO) – specifies the logging level- Will apply to the supervisor as well if used with
-start
- Will apply to the supervisor as well if used with
IntelliJ IDEA is recommended, but use what works for you. Gradle is used for building – use the build task to compile and the jar task to make a JAR.