LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 10-28-2013, 05:16 AM   #1
tuananhk53
LQ Newbie
 
Registered: Oct 2013
Location: Hanoi Vietnam
Posts: 26

Rep: Reputation: Disabled
Killing the LDAP server


hi,
i want stop openldap and i used to command
Code:
kill -INT 'cat /usr/local/var/slapd.pid'
its no stop
then i check in /usr/local/var, there is not file slapd.pid
i find its in /usr/local/var/run and i tried by command
Code:
kill -INT 'cat /usr/local/var/run/slapd.pid'
but a error
-bash: kill: cat /usr/local/var/run/slapd.pid: agruments must be process or job IDs
help me stop openldap
 
Old 10-28-2013, 07:23 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976
your quote marks are incorrect. you are confusing a single quote
Code:
'
with a backtick
Code:
`
. In general this is a good reason to not use backticks in scripts and instead use modern notation:
Code:
kill -INT $(cat /usr/local/var/run/slapd.pid)
 
Old 10-28-2013, 09:43 PM   #3
tuananhk53
LQ Newbie
 
Registered: Oct 2013
Location: Hanoi Vietnam
Posts: 26

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by acid_kewpie View Post
your quote marks are incorrect. you are confusing a single quote
Code:
'
with a backtick
Code:
`
. In general this is a good reason to not use backticks in scripts and instead use modern notation:
Code:
kill -INT $(cat /usr/local/var/run/slapd.pid)
hi,
my command is wrong, i'm careless with its
thanks for help, acid_kewpie
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] LDAP authentication error [Can't contact LDAP server] from apache httpd jonathan_w_brown Linux - Server 6 12-28-2011 06:30 PM
[SOLVED] openldap client fails to connect ldap server 'ldap_bind: Can't contact LDAP server' JALITE Linux - Server 12 09-30-2010 09:17 AM
how to setup open ldap server and solaris 10 as ldap client maheshlad Linux - Software 1 10-10-2009 01:55 AM
Ubuntu Hardy (php-ldap):Can't contact LDAP server eantoranz Programming 7 12-02-2008 07:40 PM
authenticating through one ldap server that uses other ldap servers & active director dreamm Linux - Server 1 02-21-2007 09:22 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 07:43 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration