Stop sendmail service

In Linux either I type setup in command line...it will prompt dos based gui and i can disable the sendmail service from auto run on boot...but how to disable some service in solaris8? such as ssh, ftp and sendmail?
operation1612Asked:
Who is Participating?
 
liddlerCommented:
in /etc/rc2.d you will see the startup script for sendmail, simply rename it
i.e.
mv /etc/rc2.d/S88sendmail /etc/rc2.d/not88sendmail
That will prevent it from starting on the next boot
simply running
/etc/rc2.d/S88sendmail stop
will stop it
ftp / telnet and sometimes ssh are a bit different.  They are spawned from inetd.
So you need to comment them out of /etc/inetd.conf and then restart inetd
Services should either be started via inetd, or from startup scripts in /etc/rc2.d and /etc/rc3.d
t
0
 
operation1612Author Commented:
i found this in my solaris8....which one need to be rename?

/etc/rc0.d/K36sendmail
/etc/rc1.d/K36sendmail
/etc/init.d/sendmail
0
 
liddlerCommented:
there should be one in rc2.d
the K scripts stop sendmail as the system is coming down.
the init.d script is the actual start / stop script and /etc/rc2.d/S88sendmail is often linked to that.  What is in rc2.d?
0
 
operation1612Author Commented:
oh ya...i found it K88sendmail in rc2.d...sorry..ok thanks a lot..i got it
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.