In Linux

Run as a daemon

Java support a server mode to excute a jar.

Run as a startup process

Modify /etc/rc.local to start at booting in CentOS.

Setup time zone and Sync time

<CentOS>