UI accessiblity problem when using cronjob for server restart


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users UI accessiblity problem when using cronjob for server restart
# 1  
Old 05-23-2012
UI accessiblity problem when using cronjob for server restart

Hi,

I have a couch Db server running. I have written a script which will check and kill the multiple instances of the same and then start again a new one.

Now when i start the db server manually, the UI of the DB is accessible via browser. But when i do the same using cronjob, the UI of DB is not accessible. Whenever i try to access the DB via url, it gives me the error saying unavailable. But when i do a ps uxww i can see the server process runnin.

The o/p of ps uxww is attached.

Moderator's Comments:
Mod Comment Duplicate thread, continues here:
https://www.unix.com/shell-programmin...n-job-tty.html

Last edited by methyl; 05-24-2012 at 03:43 PM..
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

How to Restart the web server

Hi, Unix AIX, on WebLogic How to Restart the web server Thank you. (2 Replies)
Discussion started by: big123456
2 Replies

2. Shell Programming and Scripting

script to restart a service in secondary server.

Can any one help me with a script to restart secondary server and sync data in it.. smsc101-0:ssh smsc101-1 "invoke-rc.d smsc restart" pwd:*** smsc101-0:rsync -avz /usr/local/smsc/data smsc101-1:/usr/local/npac/data (1 Reply)
Discussion started by: chinuku
1 Replies

3. HP-UX

Unix server restart automatically

We have HP K class unix server, It's automatically restart the server. (10 Replies)
Discussion started by: ganesh24pal
10 Replies

4. UNIX for Advanced & Expert Users

Restart Linux server

Hello all: I am new to LINUX/UNIX administration task. My Infrastructure admin has allocated me a special lab server in client location. Per my requirement, had chanted few settings in LINUX/UNIX and need to reboot the server. I am the "root" user. I had used "shutdown -r now" at command line... (3 Replies)
Discussion started by: nvkuriseti
3 Replies

5. Solaris

Restart Xvnc server

Hi My i ask how to restart the Xvnc server running on a solaris box. This is the Xvnc server running process: Xvnc:1 -httpd /usr/local/vnc/classes -geometry 1024x768 -rfbwait 5000 -rfauth <dir> -rfbport <port no> -alwaysshared Additional Question: 1. Should i kill the process and restart... (1 Reply)
Discussion started by: jao_madn
1 Replies

6. Red Hat

Server usually restart not reason

Hi everyone, - I have CentOs server 5.4 , I usually remote by ssh. - My problem is server usually restart but I don't reason. I check log in file /var/log/messages: I don't see "signal 15" which kernel have to receive before restart. Everyone can see in attach. - I try to restart with command... (3 Replies)
Discussion started by: vietbk87
3 Replies

7. Shell Programming and Scripting

How to restart the tomcat server

hi, I need a command that restart the tomcat server. for example for restart the tomcat i am using following command, /etc/init.d/tomcat restart ..but sometimes is not working...might be i want to use java code access this peace of script. like using the grep and ps commands can i use?... (2 Replies)
Discussion started by: sankar reddy
2 Replies

8. Shell Programming and Scripting

help help cronjob problem with script

hi all, have no experience with cronjob at solaris, i have create script like below: #!/bin/sh DAY=`/export/home/oracle/bin/lastdate | nawk '{print $1}'` /export/home/orahome/bin/sqlplus -s abc/abc<<eof set heading off; set linesize 100; set feedback off; spool... (4 Replies)
Discussion started by: bucci
4 Replies

9. Shell Programming and Scripting

Problem with cronjob...

Hi All I want to run a script every half an hour everyday, but it looks like it is not working the way it is supposed to. I use the line 0,30 * * * * ksh /...<script> But it only runs every hour at 30 minutes. Am i doing something wrong ? I use AIX 5.1 as my OS. Thanks In... (1 Reply)
Discussion started by: kswaraj
1 Replies

10. UNIX for Dummies Questions & Answers

how can I restart X server ?

WITHOUT shutdown X ??? thanks , Ivan (6 Replies)
Discussion started by: oneivan
6 Replies
Login or Register to Ask a Question