Displaying 3 results from an estimated 3 matches for "kill_proc".
2001 Apr 01
0
(no subject)
...ba SMB file/print services
# Set environment
PATH=/usr/bin:/sbin:/usr/sbin export PATH
# Samba directory
SAMBA_DIR=/opt/samba
SAMBA_SMBD_DEBUG_LEVEL=0
SAMBA_NMBD_DEBUG_LEVEL=0
SAMBA_SMBD_LOG=/var/opt/samba/log.smb
SAMBA_NMBD_LOG=/var/opt/samba/log.nmb
# Kill all processes matching a certain name
kill_proc () {
ps -ef | grep "$1" | grep -v grep | while read PROC; do \
PID=`echo ${PROC} | awk '{ print $2 }'`
[ ${PID} -gt 0 ] && kill ${PID}
done
}
case "$1" in
start)
${SAMBA_DIR}/bin/smbd -D -d ${SAMBA_SMBD_DEBUG_LEVEL:=0} \
-l ${SAMBA_SMBD_LOG:=/var/opt/sa...
2005 Dec 01
12
Difficult process of restarting SCGI, Lighttpd, Apache, sessions
I''ve managed to get Rails working using Apache->Lighttpd->SCGI. Restarting everything is really
difficult. This appears to be the process:
- stop apache
- stop lighttpd
- stop scgi
- make sure scgi still isn''t running (it sometimes does) - if it is, kill it
- delete all session files (they often cause permission errors)
- start scgi
- start apache
- start lighttpd
- cross
2000 Nov 01
0
FreeBSD Security Advisory: FreeBSD-SA-00:62.top
...=================================
RCS file: /mnt/ncvs/src/contrib/top/top.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- top.c 1999/01/09 20:20:34 1.4
+++ top.c 2000/10/04 23:34:16 1.5
@@ -807,7 +809,7 @@
{
if ((errmsg = kill_procs(tempbuf2)) != NULL)
{
- new_message(MT_standout, errmsg);
+ new_message(MT_standout, "%s", errmsg);
putchar('\r');
no_command = Yes;
}
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.4 (FreeBSD)
Comment: For info see...