[root@lemon ~]# sudo service halo stop
Redirecting to /bin/systemctl stop halo.service
[root@lemon ~]# sudo service halo statr
The service command supports only basic LSB actions (start, stop, restart, try-restart, reload, force-reload, status). For other actions, please try to use systemctl.
[root@lemon ~]# sudo service halo start
Redirecting to /bin/systemctl start halo.service
[root@lemon ~]# sudo service halo status
Redirecting to /bin/systemctl status halo.service
● halo.service
Loaded: loaded (/etc/systemd/system/halo.service; enabled; vendor preset: disabled)
Active: active (running) since Fri 2020-01-10 00:25:27 CST; 11s ago
Process: 2612 ExecStop=/bin/kill -s QUIT $MAINPID (code=exited, status=0/SUCCESS)
Main PID: 2664 (java)
CGroup: /system.slice/halo.service
└─2664 /usr/bin/java -server -Xms256m -Xmx256m -jar /root/halo-latest.jar
Jan 10 00:25:30 lemon java[2664]:
Jan 10 00:25:30 lemon java[2664]: ::: Spring-Boot 2.2.1.RELEASE ::: Halo (version: (v1.2.0))
Jan 10 00:25:30 lemon java[2664]: 2020-01-10 00:25:30.270 INFO 2664 --- [ main] run.halo.app.Application : Starting Application v1.2.0 on lemon wit...by root in /)
Jan 10 00:25:30 lemon java[2664]: 2020-01-10 00:25:30.275 INFO 2664 --- [ main] run.halo.app.Application : No active profile set, falling back to d...iles: default
Jan 10 00:25:33 lemon java[2664]: 2020-01-10 00:25:33.687 INFO 2664 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data repositories in DEFAULT mode.
Jan 10 00:25:34 lemon java[2664]: 2020-01-10 00:25:34.086 INFO 2664 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Finished Spring Data repository scanning...y interfaces.
Jan 10 00:25:36 lemon java[2664]: 2020-01-10 00:25:36.599 INFO 2664 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.transaction.annotation.Prox...
Jan 10 00:25:38 lemon java[2664]: 2020-01-10 00:25:38.166 WARN 2664 --- [ main] io.undertow.websockets.jsr : UT026010: Buffer pool was not set on Web... will be used
Jan 10 00:25:38 lemon java[2664]: 2020-01-10 00:25:38.261 INFO 2664 --- [ main] io.undertow.servlet : Initializing Spring embedded WebApplicationContext
Jan 10 00:25:38 lemon java[2664]: 2020-01-10 00:25:38.261 INFO 2664 --- [ main] o.s.web.context.ContextLoader : Root WebApplicationContext: initializati...ed in 7834 ms
Hint: Some lines were ellipsized, use -l to show in full.
[root@lemon ~]# firewall-cmd --query-port=8090/tcp
yes
[root@lemon ~]#