1829669 Members
10156 Online
109992 Solutions
New Discussion

Re: restart the service

 
SOLVED
Go to solution
juno2
Super Advisor

restart the service

I would like to restart the some services, can I restart the service seperately eg . network services only , the system service only ? thx
3 REPLIES 3
Steven E. Protter
Exalted Contributor
Solution

Re: restart the service

service network restart

service syslog restart

That is the syntax and it works.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
juno2
Super Advisor

Re: restart the service

Thx protter, another question, when I restart the sendmail service - it pop up the below message

Shutting down sendmail: [ OK ]
Shutting down sm-client: [FAILED]
Starting sendmail: [ OK ]
Starting sm-client: [ OK ]

, the sendmail seems failure now , what can i do? thx.
Stuart Browne
Honored Contributor

Re: restart the service

You'll notice that it's failing to 'stop' the service (for one reason or another).

The 'sm-client' part of sendmail is a separate sendmail daemon which is listed in the process list as 'sendmail: Queue runner@1:00:00 for /var/spool/clientmqueue' (by default atleast). This is governed by the '/etc/mail/submit.cf' file.

Make sure it's running, then try to 'stop' the service, see if it's still running, and if you get an error on the stop. If you did, you might want to check the submit.cf and what changes have been made to it.
One long-haired git at your service...