listing of daemons running on a unix server
Luke Kenneth Casson Leighton
lkcl at switchboard.net
Thu Dec 10 19:27:02 GMT 1998
On Fri, 11 Dec 1998, Sol Gongola wrote:
> I think you want the following info:
> The samba tasks are called nmbd and smbd
> you can make a script to issue a ps command piped
> to grep for these. that gets you their task numbers
> i.e. ps ax | grep mbd > listofsambanames
> then retrieve the tasks numbers and issuing the kill
> Is not esthetic but it is doable
i actually want _all_ unix daemons, as per andrew's outline, with a new
smb.conf option listing the daemons plus therir script file.
> >PLEASE REPLY TO SAMBA-TECHNICAL, THANKS
> >is there a way to obtain a list of daemons running? is there a method for
> >starting / stopping them?
> >on slackware, for example, /etc/rc.d/pcmcia.d has "start|stop|restart"
> >which isn't particularly good. on redhat there is a directory where every
> >script in it has "start|stop|restart".
> >what i really wanted was something under program control (c code),
> >although scripts would do. and yet another smb.conf option listing where
> >a file is that contains the scripts.
> >why i am asking is because i have "service control manager" running on the
> >latest version of samba, and i wanted to start / stop / restart httpd,
> >imapd, syslogd etc etc.
> Sol Gongola (sol at adldata.com)
> ADL Data Systems Inc
> 20 livingstone ave
> Dobbs Ferry, NY 10522
<a href="mailto:lkcl at samba.anu.edu.au" > Luke Kenneth Casson Leighton </a>
<a href="http://mailhost.cb1.com/~lkcl"> Samba and Network Development </a>
<a href="http://www.samba.co.uk" > Samba and Network Consultancy </a>
More information about the samba-technical