Crate CLI

After downloading and extracting the tarball (see Install via tar.gz) you will be able to invoke the Crate executable in the bin directory. The excutable is named crate.

The simplest way to start a Crate instance is to invoke crate without parameters. This will start the process in the foreground.

sh$ ./bin/crate

You can also start Crate in the background using the -d option. When starting Crate in the background it is helpful to write the process id into a pid file so you can find out the process id easlily:

sh$ ./bin/crate -d -p ./crate.pid

To stop the process that is running in the background send the TERM or INT signal to it.

sh$ kill -TERM `cat ./crate.pid`

The crate executable supports the following command line options:

Command Line Options

-d start the daemon in the background
-h print usage information
-p <pidfile> log the pid to a file
-v print version information
-D set a java system property value
-X set a nonstandard java option

Example:

sh$ ./bin/crate -d -p ./crate.pid -Des.config=./config/crate.yml

Signal Handling

The Crate process can handle the following signals.

Signal Description
TERM

Stops a running Crate process

kill -TERM `cat /path/to/pidfile.pid`

INT

Stops a running Crate process

Same behaviour as TERM.

USR2

Stops a running Crate process gracefully. See Zero Downtime Upgrade for more information

kill -USR2 `cat /path/to/pidfile.pid`

USR2 is not supported on Windows.

::...
免责声明:
当前网页内容, 由 大妈 ZoomQuiet 使用工具: ScrapBook :: Firefox Extension 人工从互联网中收集并分享;
内容版权归原作者所有;
本人对内容的有效性/合法性不承担任何强制性责任.
若有不妥, 欢迎评注提醒:

或是邮件反馈可也:
askdama[AT]googlegroups.com


订阅 substack 体验古早写作:


点击注册~> 获得 100$ 体验券: DigitalOcean Referral Badge

关注公众号, 持续获得相关各种嗯哼:
zoomquiet


自怼圈/年度番新

DU22.4
关于 ~ DebugUself with DAMA ;-)
粤ICP备18025058号-1
公安备案号: 44049002000656 ...::