LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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, 04: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, 06:23 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
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, 08: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



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 05:30 PM
[SOLVED] openldap client fails to connect ldap server 'ldap_bind: Can't contact LDAP server' JALITE Linux - Server 12 09-30-2010 08:17 AM
how to setup open ldap server and solaris 10 as ldap client maheshlad Linux - Software 1 10-10-2009 12:55 AM
Ubuntu Hardy (php-ldap):Can't contact LDAP server eantoranz Programming 7 12-02-2008 06:40 PM
authenticating through one ldap server that uses other ldap servers & active director dreamm Linux - Server 1 02-21-2007 08:22 AM

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

All times are GMT -5. The time now is 06:50 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
Open Source Consulting | Domain Registration