LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Killing the LDAP server (https://www.linuxquestions.org/questions/linux-server-73/killing-the-ldap-server-4175482446/)

tuananhk53 10-28-2013 04:16 AM

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

acid_kewpie 10-28-2013 06:23 AM

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)

tuananhk53 10-28-2013 08:43 PM

Quote:

Originally Posted by acid_kewpie (Post 5053619)
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


All times are GMT -5. The time now is 03:00 PM.