Start:
service servicename start
/etc/init.d/servicename start
Stop:
service servicename stop
/etc/init.d/servicename stop
Check Status
service servicename status
/etc/init.d/servicename status
Some services will have different commands available, just type service servicename to see them, e.g.
service sshd
Usage: /etc/init.d/sshd {start|stop|restart|reload|force-reload|condrestart|try-restart|status}
service httpd
Usage: httpd {start|stop|restart|condrestart|try-restart|force-reload|reload|status|fullstatus|graceful|help|configtest}
FYI, in the Jang book, he points to the "Networking Primer" when he mentions this objective. Seems like your post makes more sense, though.
ReplyDeleteI'm happy that my post was helpful
Delete