search for: killproc

Displaying 20 results from an estimated 84 matches for "killproc".

2000 Nov 07
4
RedHat sshd.init script typo ?
Hi, I noticed one small possible error in the openssh-2.3.0p1/contrib/redhat/sshd.init script. In the stop option: stop) echo -n "Shutting down sshd: " if [ -f $PID_FILE ] ; then killproc sshd [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/sshd fi echo Shouldn't there be RETVAL=$? after killproc sshd ? If this is the case here's a patch: --- sshd.init~ Mon Oct 16 04:25:17 2000 +++ sshd.init Tue Nov 7 15:06:16 20...
2003 Jun 01
2
AW: samba installation
.../etc/rc.config). return=$rc_done case "$1" in start) echo -n "Starting SMB services..." nmbd -D smbd -D winbindd echo -e "$return" ;; stop) echo -n "Shutting down SMB services." killproc -TERM winbindd killproc -TERM nmbd killproc -TERM smbd sleep 2 killproc -TERM nmbd echo -e "$return" ;; *) echo "Usage: $0 {start|stop}" exit 1 esac # Inform the caller not only verbosely and set an ex...
2005 Aug 27
1
Samba works!: Samba, Kerberos, Win2K Active Directory authentication
...libnss_winbind.so nss_winbind.so.2 7. Generate in /etc/init.d/ the file samba: ------------------------------------------------------ #!/bin/sh # # # This file should have uid root, gid sys and chmod # 744 # if [ ! -d /usr/bin ] then # /usr not mounted exit fi killproc() { # kill the named process(es) pid=`/usr/bin/ps -e | /usr/bin/grep -w $1 | /usr/bin/sed -e 's/^ *//' -e 's/ .*//'` [ "$pid" != "" ] && kill $pid } # Start/stop processes required for samba server ca...
2002 Jan 18
5
contrib/solaris/opensshd.in patch
...KILL=/usr/bin/kill PS=/usr/bin/ps XARGS=/usr/bin/xargs prefix=%%openSSHDir%% --- 8,19 ---- KILL=/usr/bin/kill PS=/usr/bin/ps XARGS=/usr/bin/xargs + FGREP=/usr/bin/fgrep + EGREP=/usr/bin/egrep + ME=`/usr/bin/basename $0` prefix=%%openSSHDir%% *************** *** 22,29 **** killproc() { _procname=$1 ! _signal=$2 ! ${PS} -u root | ${AWK} '/'"$_procname"'$/ {print $1}' | ${XARGS} ${KILL} } --- 25,42 ---- killproc() { _procname=$1 ! ! #The next line finds only the parent of $_procname if it exists ! PID=`${PS} -le -u root...
2006 Jun 21
2
startup script for icecast
...t; # initlog -c "$ICECAST2 $OPTIONS" && success || failure initlog -c "$ICECAST2 -b -c $CONFIG_FILE" && success || failure RETVAL=$? [ "$RETVAL" = 0 ] && touch /var/lock/subsys/icecast2 echo } stop() { echo -n $"Stopping $prog:" killproc $ICECAST2 -TERM RETVAL=$? [ "$RETVAL" = 0 ] && rm -f /var/lock/subsys/icecast2 echo } restart() { echo -n $"Reloading $prog:" killproc $ICECAST2 -HUP RETVAL=$? echo } case "$1" in start) start ;; stop) stop ;; restart) stop start ;; s...
2002 Aug 29
1
Need Help: Sometimes Stop during smbd start
...t; Warning: $SMB_PID exists ! " fi startproc $SMB_BIN -D rc_status -v echo -n "SAMBA smbd gestartet" ;; stop) echo -n "Shutting down SAMBA nmbd :" checkproc $NMB_BIN || echo -n " Warning: nmbd not running ! " killproc -TERM $NMB_BIN rm $NMB_PID rc_status -v echo -n "Shutting down SAMBA smbd :" checkproc $SMB_BIN || echo -n " Warning: smbd not running ! " killproc -TERM $SMB_BIN rm $SMB_PID rc_status -v ;; try-restart) $0 stop && $0 start rc_status...
2011 Jul 11
0
Xen and timekeeping
...; output in domU shows time unchanged, as before, incorrect by 5 hours. But any current_time-dependent operations don't behave correctly. Quagga's OSPFd daemon doesn't add routes. 'service dhcpd stop' hangs forever while correctly stopping the daemon. AFAIK, it hangs on 'killproc' [root at gbuh-ufa init.d]# grep killproc dhcpd -A 2 -B 2 echo -n $"Shutting down $prog: " killproc $prog RETVAL=$? [ $RETVAL = 0 ] && rm -f $lockfile From http://www.novell.com/coolsolutions/feature/15380.html killproc: killproc kills a process which is gi...
2017 Nov 29
2
Perl fun part 2
...spamming the list. Along with the /usr/share/perl5 issues (which I did kinda fix with a manual copy of the directory from another box), we're having an issue with SystemD (go figure) stopping the radiator service, but failing to unbind the ports (1645/1646). It's complaining about 'killproc' not found. Is there a package that's in? Or how do I get this to work with SystemD properly? We can't have this thing jacked up like this. Any ideas? -- Mark Haney Network Engineer at NeoNova 919-460-3330 option 1 mark.haney at neonova.net www.neonova.net
2002 Jul 16
1
opensshd.in
...+3,8 @@ # # Stripped PRNGd out of it for the time being. -AWK=/usr/bin/awk CAT=/usr/bin/cat KILL=/usr/bin/kill -PS=/usr/bin/ps -XARGS=/usr/bin/xargs prefix=%%openSSHDir%% etcdir=%%configDir%% @@ -20,12 +17,6 @@ HOST_KEY_DSA=$etcdir/ssh_host_dsa_key HOST_KEY_RSA=$etcdir/ssh_host_rsa_key -killproc() { - _procname=$1 - _signal=$2 - ${PS} -u root | ${AWK} '/'"$_procname"'$/ {print $1}' | ${XARGS} ${KILL} -} - checkkeys() { if [ ! -f $HOST_KEY_RSA1 ]; then @@ -46,8 +37,7 @@ if [ ${PID:=0} -gt 1 -a ! "X$PID" = "X " ]; then...
2010 Jul 22
1
problem with restarting nut
Hi, one user found problem with restarting nut. upsdrvctl does not wait for drivers being really terminated. In init scripts we have following: killproc upsmon killproc upsd upsdrvctl stop and then upsdrvctl start upsd upsmon problem is upsdrvctl stop only sends terminating signals but does not wait for driver termination. This makes driver fail to start sometimes when old driver is still running because "device is locked by another proce...
2001 Oct 17
3
Again: bugs in contrib/solaris/opensshd.in and buildpkg.sh
(Shame on me: wrong filename in last posting, now here are correct diffs) in contrib/solaris/ (openssh-SNAP-20011017.tar.gz) 1) buildpkg.sh makes wrong link for /etc/init.d/opensshd 2) /etc/init.d/opensshd has not-working killproc here my version tested on Solaris 2.4 and 8 (no pgrep with solaris 2.4, XARGS was undefined, simpler syntax) J?rg --- contrib/solaris/buildpkg.sh Fri Oct 12 22:30:53 2001 +++ contrib/solaris/buildpkg.sh Tue Oct 16 13:53:07 2001 @@ -40,9 +40,9 @@ ../opensshd.in > $FAKE_ROOT/etc/init...
2006 Aug 18
3
RH init scripts busted ?
Hi, I''m just getting started with puppet, and using the RPMS provided (on CentOS 4.3), and RedHat''s killproc is annoying me again. The process is called ''ruby'' instead of ''puppetmasterd''. $ ps 7869 PID TTY STAT TIME COMMAND 7869 ? Ss 0:00 ruby /usr/sbin/puppetmasterd [ etc ] So, service puppetmaster restart|condrestart|stop all fail because RH...
1999 Oct 02
2
How to start smb server when reboot?
...in start) echo -n "Starting SMB services:" startproc /usr/sbin/nmbd -D || return=$rc_failed startproc /usr/sbin/smbd -D || return=$rc_failed echo -e "$return" ;; stop) echo -n "Shutting down SMB services:" killproc -TERM /usr/sbin/nmbd || return=$rc_failed killproc -TERM /usr/sbin/smbd || return=$rc_failed echo -e "$return" ;; restart|reload) $0 stop && $0 start || return=$rc_failed ;; status) checkproc /usr/sbin/nmbd &amp...
2007 Dec 19
1
multiple rsyncd daemons: init script
Hi all, I want to run 2 rsync daemons on my system. Each has its own configuration file, and they are listening on a specific port. These 2 daemons are running perfectly but getting them started by 2 init scripts is a bit more difficult. The problem is that when stopping rsync you check the pid of rsync, which results in both pids of the daemons. Off course i want the script to be very
2003 Jun 02
0
AW: Re: AW: samba installation
...return=$rc_done > >case "$1" in > >start) > >echo -n "Starting SMB services..." > >nmbd -D > >smbd -D > >winbindd > >echo -e "$return" > >;; > >stop) > >echo -n "Shutting down SMB services." > >killproc -TERM winbindd > >killproc -TERM nmbd > >killproc -TERM smbd > >sleep 2 > >killproc -TERM nmbd > >echo -e "$return" > >;; > >*) > >echo "Usage: $0 {start|stop}" > >exit 1 > >esac > ># Inform the caller not only ve...
2009 Jun 19
2
AIX starting and stopping samba from command line
...ee how we were called. case "$1" in start) echo -n "Starting SMB services: " daemon smbd -D daemon nmbd -D echo touch /var/lock/subsys/smb ;; stop) echo -n "Shutting down SMB services: " killproc smbd killproc nmbd rm -f /var/lock/subsys/smb echo "" ;; *) echo "Usage: smb {start|stop}" exit 1 esac _________________________________________________________________ Microsoft brings you a new way to search the web....
1998 Sep 10
0
SAMBA digest 1807
...ant sections of smb.conf, spooler, etc). > #!/bin/sh > #ident "@(#)samba.server 1.0 96/06/19 TK" /* SVr4.0 1.1.13.1*/ > # > # Please send info on modifications to knuutila@cs.utu.fi > # > # This file should have uid root, gid sys and chmod 744 > # > > killproc() { # kill the named process(es) > pid=`/usr/bin/ps -e | > /usr/bin/grep -w $1 | > /usr/bin/sed -e 's/^ *//' -e 's/ .*//'` > [ "$pid" != "" ] && kill $pid > } Why are you using this...
2003 Jun 02
0
AW: Re: AW: samba installation
...>>echo -n "Starting SMB services..." >> >>nmbd -D >> >>smbd -D >> >>winbindd >> >>echo -e "$return" >> >>;; >> >>stop) >> >>echo -n "Shutting down SMB services." >> >>killproc -TERM winbindd >> >>killproc -TERM nmbd >> >>killproc -TERM smbd >> >>sleep 2 >> >>killproc -TERM nmbd >> >>echo -e "$return" >> >>;; >> >>*) >> >>echo "Usage: $0 {start|stop}" >&g...
2003 Jun 06
5
stability
I'm having problems when I restart the smb server with it not coming back up. As near as I can tell it's actually NMBD that's having the issue. I'm running RedHat 9.0 on a Compaq ML-370 with Dual 1.2GHz P3s and I just upgraded Samba to 2.2.8a-1 after having this same problem with 2.2.7a When I issue: #service smb restart It says that it shut down and restarted ok, but then nobody
2001 Oct 19
2
Samba installation - "execvp - permission denied" problem - Plz help
...) echo -n "Starting SMB services: " daemon /usr/local/bin/samba-2.2.2/source/smbd -D daemon /usr/local/bin/samba-2.2.2/source/nmbd -D echo touch /var/lock/subsys/smb ;; stop) echo -n "Shutting down SMB services: " killproc /usr/local/bin/samba-2.2.2/source/smbd killproc /usr/local/bin/samba-2.2.2/source/nmbd rm -f /var/lock/subsys/smb echo "" ;; status) status /usr/local/bin/samba-2.2.2/source/smbd status /usr/local/bin/samba-2.2.2/source/nmbd ;; r...