I couldn't tell from your post what distribution you are using. If you were using a RedHat based distribution, you could do something like:
Code:
service <name_of_service> restart
Where <name_of_service> is the name of the service you want to restart for example:
Code:
service named restart
Would restart the DNS service.
Regards,
Fordeck