[root@ip-********** ~]# sudo service elasticsearch start
Starting elasticsearch (via systemctl): [ OK ]
[root@ip-********** ~]# sudo service elasticsearch status
● elasticsearch.service - Starts and stops a single elasticsearch instance on this system
Loaded: loaded (/usr/lib/systemd/system/elasticsearch.service; disabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Sat 2018-08-04 21:06:02 UTC; 2s ago
Docs: http://www.elasticsearch.org
Process: 9330 ExecStart=/usr/share/elasticsearch/bin/elasticsearch -d -p /var/run/elasticsearch/elasticsearch.pid -Des.default.config=$CONF_FILE -Des.default.path.home=$ES_HOME -Des.default.path.logs=$LOG_DIR -Des.default.path.data=$DATA_DIR -Des.default.path.work=$WORK_DIR -Des.default.path.conf=$CONF_DIR (code=exited, status=0/SUCCESS)
Main PID: 9336 (code=exited, status=3)
Aug 04 21:05:57 ip-.us-east-2.compute.internal systemd[1]: Starting Starts and stops a single elasticsearch instance on this system...
Aug 04 21:05:57 ip-.us-east-2.compute.internal systemd[1]: PID file /var/run/elasticsearch/elasticsearch.pid not readable (yet?) after start.
Aug 04 21:05:57 ip-.us-east-2.compute.internal systemd[1]: Started Starts and stops a single elasticsearch instance on this system.
Aug 04 21:06:02 ip-.us-east-2.compute.internal systemd[1]: elasticsearch.service: main process exited, code=exited, status=3/NOTIMPLEMENTED
Aug 04 21:06:02 ip-.us-east-2.compute.internal systemd[1]: Unit elasticsearch.service entered failed state.
Aug 04 21:06:02 ip-***.us-east-2.compute.internal systemd[1]: elasticsearch.service failed.