Sponsored Content
Top Forums UNIX for Dummies Questions & Answers restarting a webserver on hang Post 302204944 by scarfake on Friday 13th of June 2008 01:41:23 AM
Old 06-13-2008
i have this in /opt/running.sh
Code:
running=no
running=`curl --connect-timeout 3 http://localhost/running.txt`
if [ $running == "no" ]
then
killall -9 lighttpd
/etc/init.d/lighttpd start
fi
sleep 60
/opt/running.sh

and in /var/www/running.txt there simply the word
Code:
running


i invoke the script at boot time with sudo -b /opt/running.sh
 

10 More Discussions You Might Find Interesting

1. OS X (Apple)

Webserver Setup, need help!

Hey guys, does anyone know how I edit, configure the server settings using the terminal? MySQL and PHP was once working. But after frying the Xserve G5 i'm in the middle of rebuilding everything, I believe i need to re-configure the root document directory... but have forgotten how to edit... (1 Reply)
Discussion started by: hype.it
1 Replies

2. SuSE

Cannot connect to webserver

Hello All, I need some help as to how to debug the problem I am having with my webserver. I am using Suse 9.2 pro as my server. I have setup my firewall and router to forward http 80 request to my linux server. I tried pinging my server from work - it worked. I tried running localhost... (5 Replies)
Discussion started by: negixx
5 Replies

3. UNIX for Dummies Questions & Answers

Restarting the Spooler

:confused: Everytime our UNIXWARE 7 Server is restarted we also have to restart the spooler. If the spooler is not restarted, print jobs get stuck in the queu. Once restarted by using the following command lpstop and lpstart everything works fine. Does anyone have any ideas what could be causing... (0 Replies)
Discussion started by: Yorgy
0 Replies

4. UNIX for Advanced & Expert Users

apache webserver

Can I set up an apache webserver on Mandriva? Looking for the easiest webserver program to install basic webserver just for home use. Any ideas/suggestions much appreciated..... (2 Replies)
Discussion started by: jo calamine
2 Replies

5. Solaris

webserver login

how can I get statistics and web analysis for solaris 10 webserver access? what is the file? and what is the tools to analyze it? thanx (2 Replies)
Discussion started by: fsmadi
2 Replies

6. Solaris

telnet Webserver GET /

I want to incorporate this in a script for some simple monitoring for my webserver telnet localhost 80 GET /opencms/opencms/test/index.html how to do it? I tried echo "GET /opencms/opencms/test/index.html" | telnet localhost 80 I tried telnet localhost 80 << EOF echo "GET... (4 Replies)
Discussion started by: sparcguy
4 Replies

7. Programming

Restarting the program

Hi, I use gfortran to run the code. Some times I need to stop the program and restart it. On restarting I need to run the program from the beginning. Is there any script or option available to restart the program from where it stopped? This script/option will be immensely useful for... (2 Replies)
Discussion started by: rpd25
2 Replies

8. UNIX for Dummies Questions & Answers

Restarting a process

Hi, How is it possible to restart only your process. I can get the process killed but I am not able to start it. For eg : i first did this ps -ef|grep _out --displays all the process with _out in the name then I killed kill -15 36044 -- process id. Now how can i start the same... (1 Reply)
Discussion started by: TH3M0Nk
1 Replies

9. Shell Programming and Scripting

Need help in restarting process

Hi friends, I have one unix command which is used to check the network status manually. followig is the command check_Network this command give follwoing status Network 1 is ok Network 2 is ok network 3 is ok network 4 is ok . . . . Network 10 is... (8 Replies)
Discussion started by: Nakul_sh
8 Replies

10. Emergency UNIX and Linux Support

Netcat ( nc -l ) as webserver

Dear Linux guru's I am trying to create a webserver using nc (netcat only) on RHEL 7.2 running on bash shell. now the easy thing is to get nc listing to a port and respond back $ while true; do { echo -e 'HTTP/1.0 200 OK\r\n'; set; } | nc -l 7877; done This when called from a... (3 Replies)
Discussion started by: chakrapani
3 Replies
AMULEWEB(1)							  aMule utilities						       AMULEWEB(1)

NAME
amuleweb - aMule web server SYNOPSIS
amuleweb [-h <host>] [-p <port>] [-P <password>] [-f <path>] [-q] [-v] [-l <lang>] [-w] [-t <name>] [-s <port>] [-u] [-U <port>] [-z] [-Z] [-A <password>] [-G <password>] [-a | -d] [-L] [--no-php] [-N] amuleweb [--create-config-from=<path>] amuleweb [--help] amuleweb [--version] amuleweb [--amule-config-file=<path>] DESCRIPTION
amuleweb manages your access to amule through a web browser. You can start amuleweb together with amule(1), or separately, any time later. Options can be specified via command-line or via config-file. Command-line options take precedence over config-file options. [ -h <host>, --host=<host> ] Host where aMule is running (default: localhost). <host> might be an IP address or a DNS name [ -p <port>, --port=<port> ] aMule's port for External Connections, as set in Preferences->Remote Controls (default: 4712) [ -P <password>, --password=<password> ] External Connections password. [ -f <path>, --config-file=<path> ] Use the given configuration file. Default configuration file is ~/.aMule/remote.conf [ -q, --quiet ] Do not print any output to stdout. [ -v, --verbose ] Be verbose - show also debug messages. [ -l <lang>, --locale=<lang> ] Sets program locale (language). See the NOTES section for the description of the <lang> parameter. [ -w, --write-config ] Write command line options to config file and exit [ -t <name>, --template=<name> ] Loads the template named <name>. See the SKIN SUPPORT section for details. [ -s <port>, --server-port=<port> ] Webserver's HTTP port. This is the port you must point your browser to (default: 4711). [ -u ] Enable UPnP. [ -U <port>, --upnp-port <port> ] UPnP port. [ -z, --enable-gzip ] Enables using gzip compression in HTTP traffic to save bandwidth. [ -Z, --disable-gzip ] Disables using gzip compression (this is the default). [ -A <passwd>, --admin-pass=<passwd> ] Full access password for webserver. [ -G <passwd>, --guest-pass=<passwd> ] Guest password for webserver. [ -a, --allow-guest ] Allows guest access. [ -d, --deny-guest ] Denies guest access (default). [ -L, --load-settings ] Load/save webserver settings from/to remote aMule. This causes amuleweb to ignore command-line and config-file settings, and load them from aMule. When saving preferences none will be written to the config file, but to aMule. (Of course, this works only for those settings that can be set in aMule's Preferences->Remote Controls.) [ --no-php ] Disable PHP interpreter (deprecated) [ -N, --no-script-cache ] Recompiles PHP pages on each request. [ --create-config-from=<path> ] Create config file based upon <path>, which must point to a valid aMule config file, and then exit. [ --help ] Prints a short usage description. [ --version ] Displays the current version number. [ --amule-config-file=<path> ] aMule config file path. DO NOT USE DIRECTLY! aMule uses this option when starting amuleweb at aMule startup. This option causes all other command-line and config-file settings to be ignored, preferences to be read from the given config file, and also implies the -q -L options. NOTES
Paths For all options which take a <path> value, if the path contains no directory part (i.e. just a plain filename), then it is considered to be under the aMule configuration directory, ~/.aMule. Languages The <lang> parameter for the -l option has the following form: lang[_LANG][.encoding][@modifier] where lang is the primary language, LANG is a sublanguage/territory, encoding is the character set to use and modifier allows the user to select a specific instance of localization data within a single category. For example, the following strings are valid: de de_DE de_DE.iso88591 de_DE@euro de_DE.iso88591@euro Though all the above strings are accepted as valid language definitions, encoding and modifier are yet unused. In addition to the format above, you can also specify full language names in English - so -l german is also valid and is equal to -l de_DE. When no locale is defined, either on command-line or in config file, system default language will be used. SKIN SUPPORT
amuleweb is capable of displaying information in different skins. These skins are called templates, and you can make amuleweb load a spe- cific template via the -t command line option. Templates are searched in two places: first in ~/.aMule/webserver/ and then in /usr/share/amule/webserver/ if you installed with --prefix=/usr. Each template must be in a subdirectory of the template name, and this directory must contain all files the template needs. FILES
~/.aMule/remote.conf ~/.aMule/webserver/ $(pkgdatadir)/webserver/ EXAMPLE
Typically amuleweb will be first run as: amuleweb -h hostname -p ECport -P ECpassword -s HTTPport -A AdminPassword -w or amuleweb --create-config-from=/home/username/.aMule/amule.conf These will save settings to $HOME/.aMule/remote.conf, and later you only need to type: amuleweb Of course, you may specify any more or less options on the first example line, and you may also totally omit it. REPORTING BUGS
Please report bugs either on our forum (http://forum.amule.org/), or in our bugtracker (http://bugs.amule.org/). Please do not report bugs in e-mail, neither to our mailing list nor directly to any team member. COPYRIGHT
aMule and all of its related utilities are distributed under the GNU General Public License. SEE ALSO
amule(1), amulecmd(1) AUTHOR
This manpage was written by Vollstrecker <amule@vollstreckernet.de> aMule webserver v2.3.1 November 2011 AMULEWEB(1)
All times are GMT -4. The time now is 03:29 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy