To start, stop and restart a service in ubuntu (probaly in all other distros), you go to /etc/init.d, there you have the scripts to all the services (ex: dhcp, newtworking, ...).
For example if you want to stop the dhcp service you just need to do :
# sudo /etc/init.d/dhcp stop
to start it again do:
# sudo /etc/init.d/dhcp start
to restart it do:
# sudo /etc/init.d/dhcp restart
For the other services you just change "dhcp" to the name service script in /etc/init.d.
As you migth already noticed, you can see which services you have by seeing which scripts exist in /etc/init.d.
1 comment:
Interesting to know.
Post a Comment