Sponsored Content
Top Forums UNIX for Advanced & Expert Users UI accessiblity problem when using cronjob for server restart Post 302645287 by sarath@123 on Wednesday 23rd of May 2012 07:43:18 AM
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..
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

how can I restart X server ?

WITHOUT shutdown X ??? thanks , Ivan (6 Replies)
Discussion started by: oneivan
6 Replies

2. 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

3. 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

4. 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

5. 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

6. 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

7. 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

8. 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

9. 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

10. 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
web2py(1)							   User Commands							 web2py(1)

NAME
web2py - web2py Web Framework server launcher SYNOPSIS
web2py [options] DESCRIPTION
web2py is a the startup script to launch web2py server running applications located the current directory. If the user has not write per- missions on this directory, web2py will server applications located at ~/web2py ATTENTION: unless --nogui option or a password is specified (-a "passwd") web2py will attempt to run a GUI. In this case command line options are ignored. OPTIONS
These programs follow the usual GNU command line syntax, with long options starting with two dashes (`-'). A summary of options is included below. For a complete description, see the Info files. --version Show version of program and exit. -h, --help Show summary of options and exit. -i IP, --ip=IP Ip address of the server (defaults: 127.0.0.1) -p PORT, --port=PORT Port of server (defaults:8000) -a PASSWORD, --password=PASSWORD Password to be used for administration (use -a "<recycle>" to reuse the last password)) -c SSL_CERTIFICATE, --ssl_certificate=SSL_CERTIFICATE File that contains ssl certificate -k SSL_PRIVATE_KEY, --ssl_private_key=SSL_PRIVATE_KEY File that contains ssl private key -d PID_FILENAME, --pid_filename=PID_FILENAME File to store the pid of the server -l LOG_FILENAME, --log_filename=LOG_FILENAME File to log connections -n NUMTHREADS, --numthreads=NUMTHREADS Number of threads (deprecated) --minthreads=MINTHREADS Minimum number of server threads --maxthreads=MAXTHREADS Maximum number of server threads -s SERVER_NAME, --server_name=SERVER_NAME Server name for the web server -q REQUEST_QUEUE_SIZE, --request_queue_size=REQUEST_QUEUE_SIZE Max number of queued requests when server unavailable -o TIMEOUT, --timeout=TIMEOUT Timeout for individual request (Defaults: 10 seconds) -z SHUTDOWN_TIMEOUT, --shutdown_timeout=SHUTDOWN_TIMEOUT Timeout on shutdown of server (Defaults: 5 seconds) -f FOLDER, --folder=FOLDER Folder from which to run web2py -v, --verbose Increase --test verbosity -Q, --quiet Disable all output -D DEBUGLEVEL, --debug=DEBUGLEVEL Set debug output level (0-100, 0 means all, 100 means none; default is 30) -S APPNAME, --shell=APPNAME Run web2py in interactive shell or IPython (if installed) with specified appname (if app does not exist it will be created). -P, --plain Only use plain python shell; should be used with --shell option -M, --import_models Auto import model files; default is False; should be used with --shell option -R PYTHON_FILE, --run=PYTHON_FILE Run PYTHON_FILE in web2py environment; should be used with --shell option -T TEST_PATH, --test=TEST_PATH Run doctests in web2py environment; TEST_PATH like a/c/f (c,f optional) -C, --cron Trigger a cron run manually; usually invoked from a system crontab --softcron Triggers the use of softcron -N, --no-cron Do not start cron automatically -J, --cronjob Identify cron-initiated command -L CONFIG, --config=CONFIG Config file -F PROFILER_FILENAME, --profiler=PROFILER_FILENAME Profiler filename --nogui Text-only, no GUI -A ARGS, --args=ARGS Should be followed by a list of arguments to be passed to script, to be used with -S, -A must be the last option --interfaces=INTERFACES Allows multiple interfaces to be served AVAILABILITY
The latest version of web2py can always be obtained from http://www.web2py.com/examples/default/download DOCUMENTATION
The Official web2py book is available at http://www.web2py.com/book AUTHOR
web2py was written by Massimo Di Pierro <mdipierro@cs.depaul.edu>>. This manual page was written by Jose L. Redrejo Rodriguez <jredrejo@debian.org>, for the Debian project (and may be used by others). Debian January 30, 2011 web2py(1)
All times are GMT -4. The time now is 05:20 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy