I need to know when was my Apache server last started. Whats is the best and most reliable way to find out not just for Apache but for any PID per say?
I am also confused as to what is the best way to find the PID[unique] of the apache server running on my unix box.
Below command returns multiple PIDs which is confusing.
I have a job that runs for an unspecified amount of time. I want to run this as a cron job for a specified amount of time, say 2 hours. Once the time is up, the program should be killed in the middle of execution. How can I do this?
Thanks. (5 Replies)
Hi All,
I am working on a script which requires an input from user within one 1 min.
So if the user gives the required input within 1 min., it will execute on the basis of input provided by the user.Other wise it will execute on a default value(hard coded inside the script).
Now, I am... (19 Replies)
Hi all,
now i am writting one bash script. in that my requirement is
i need to create one directory and that the directory details to be stored in one file Ex. date/time and all in one file.
after that i need to delete the folder automatically exactly after 3months.
between these time... (5 Replies)
Hey guys, I'm fairly new at unix shell scripting and I have a quick question.
Quick overview I devolped a script where I generate a file ..and I want to grep any time greater than 30 minutes.
What i do is runa command to generates the below and puts it into a file:
I run
./ggsci << endit... (4 Replies)
Hi,
Can some one please tell me how do I generate a report of the Memory Consumption over a time period:
HP-UX B.11.31 U ia64 0440531406 unlimited-user license
I normally use glance to monitor memory in run time.
Note: I do not have root privileges.
Thanks
Danish
... (5 Replies)
I used this script to get the connection to a domain in two specific minutes. I need to extend to give result over a range of minutes.
The below gives total number of connections in the minutes 00:40 and 01:13 on 22nd March.
egrep "22/Mar/2013:00:40|22/Mar/2013:01:13"... (1 Reply)
All,
How to get the list of files through a unix command which exists / created / updated between 8 PM to 11:59 PM from a particular location.
Regards
Oracle User (3 Replies)
Hello All,
As I stated in subject, I need a command to terminate my tcpdump command in a certain time period. (using HP-UX)
I am using below one to terminate when number of captured packages reach 3 limit.
But what if there will no packet come in 5 min for instance?
Please help me to find a... (2 Replies)
Below are my custom period start and end dates based on a calender, these dates are placed in a file, for each period i need to split into three weeks for each period row, example is given below.
Could you please help out to achieve solution through shell script..
File content:
... (2 Replies)
Discussion started by: nani2019
2 Replies
LEARN ABOUT REDHAT
httpd
httpd(8) System Manager's Manual httpd(8)NAME
httpd - Apache hypertext transfer protocol server
SYNOPSIS
httpd [ -d serverroot ] [ -f config ] [ -C directive ] [ -c directive ] [ -D parameter ]
httpd [ -h ] [ -l ] [ -L ] [ -v ] [ -V ] [ -t ] [ -X ]
DESCRIPTION
httpd is the Apache HyperText Transfer Protocol (HTTP) server program. It is designed to be run as a standalone daemon process. When used
like this it will create a pool of child processes to handle requests. To stop it, send a TERM signal to the initial (parent) process. The
PID of this process is written to a file as given in the configuration file.
This manual page only lists the command line arguments. For details of the directives necessary to configure httpd see the Apache manual,
which is part of the Apache distribution or can be found at http://httpd.apache.org/. Paths in this manual may not reflect those compiled
into httpd.
OPTIONS -d serverroot
Set the initial value for the ServerRoot directive to serverroot. This can be overridden by the ServerRoot command in the con-
figuration file. The default is /etc/httpd.
-f config Execute the commands in the file config on startup. If config does not begin with a /, then it is taken to be a path relative
to the ServerRoot. The default is conf/httpd.conf.
-C directive
Process the configuration directive before reading config files.
-c directive
Process the configuration directive after reading config files.
-D parameter
Sets a configuration parameter which can be used with <IfDefine>...</IfDefine> sections in the configuration files to condi-
tionally skip or process commands.
-h Output a short summary of available command line options.
-l Output a list of modules compiled into the server.
-L Output a list of directives together with expected arguments and places where the directive is valid.
-S Show the settings as parsed from the config file (currently only shows the virtualhost settings).
-t Run syntax tests for configuration files only. The program immediately exits after these syntax parsing with either a return
code of 0 (Syntax OK) or return code not equal to 0 (Syntax Error). If -D DUMP_VHOSTS is also set, details of the virtual host
configuration will be printed.
-v Print the version of httpd , and then exit.
-V Print the version and build parameters of httpd , and then exit.
-X Run httpd in debug mode. Only one worker will be started and the server will not detach from the console.
FILES
/etc/httpd/conf/httpd.conf
/etc/mime.types
/etc/httpd/conf/magic
/var/log/httpd/error_log
/var/log/httpd/access_log
/var/run/httpd.pid
February 1997 httpd(8)