Working with NFO Service
Working with NFO service depends on OS type it installed on. Below are the methods can be used to start, stop, restart the service or get its status.
OS Which Does Not Support systemd
Command status reports the state of the service (running or not) and its PID, if it is running.
OS Which Supports systemd
systemctl start|stop|restart|status tomcat_nfo.service
Command status gives a verbose info about the service. To find the line with info in the style of OS which does not support systemd, you may use option –l:
systemctl –l status tomcat_nfo.service
This option prevents from replacing trailing portion of long strings by ellipsis.
Command systemctl provides more features compared to other methods. For details, see the documentation for this command.
service tomcat_nfo start|stop|restart|status
This method works on both types of OS but it is deprecated on OS which supports systemd. Actually, the service command is translated to the above commands depending on OS type.