Sponsored Content
Top Forums Web Development How to keep process running after apache restart. Post 302450912 by majid.merkava on Saturday 4th of September 2010 03:55:22 PM
Old 09-04-2010
You should do this:

Code:
service httpd reload

'reload' option does not close alive connections.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

need help: shell script to restart apache when no. of processes keeps growing

I need a shell script to kill apache and restart it, in case the number of processes keeps growing. The logic is like the below, but I don't know how to get the number and neither the syntax. Could somebody kindly help? if no_of_processes (ps ax ¦ grep httpd) > 200 then killall httpd... (14 Replies)
Discussion started by: _joshua_
14 Replies

2. SuSE

Restart process

I have a process that gradually eats up memory, it's currently at 80.2% and slowing down the linux server > ps aux | grep SNMPME root 3129 0.0 80.2 3591752 2480700 ? Sl Feb13 5:04 /opt/nampe/lib/snmpme/SNMPME config/startup.xml Is there a command I can execute to restart this... (3 Replies)
Discussion started by: brendan76
3 Replies

3. Web Development

Can't restart apache. PHP is broken.

I need to restart my apache, but apachectl configtest tells me that Syntax error on line 208 of /etc/httpd/conf/httpd.conf: Cannot load /usr/local/apache/libexec/libphp4.so into server: /usr/local/apache/libexec/libphp4.so: undefined symbol: ap_signal I've tried rebuilding php, I'm not... (2 Replies)
Discussion started by: tatebn
2 Replies

4. Shell Programming and Scripting

How to keep process running after apache restart.

I have posted this on the Web subforum but it seems that nobody knows to do this, maybe someone has a solution here. Thank you I have a PHP application that starts a couple of processes on the server...the problem is that if I restart apache those running apps will die. How can I start them... (1 Reply)
Discussion started by: valiadi
1 Replies

5. Shell Programming and Scripting

Script to restart apache when running out of memory

Hi, I have a problem with running out of memory in my Ubuntu web server (4GB RAM) because many people try to access my server. I used to restart manually my apache server to clear out the memory & swap. Can anyone tell me how to write bash script that can automatically restart apache when... (2 Replies)
Discussion started by: nica
2 Replies

6. Shell Programming and Scripting

Error while running restart script -

Hi All I have written below basic restart script but it is giving me the following error - error - syntax error at line 40 : `else' is not matched . below is the script can someone assist me what i am doing wrong - #!/bin/ksh cd bin . ./set_sysm sleep 60 ./swstop -f 0 ... (1 Reply)
Discussion started by: honey26
1 Replies

7. Red Hat

Process not running: /opt/java15/jdk/bin/java -classpath /opt/apache/apache-ant-1.7.0-mod/lib/ant-la

Have no idea on what the below error message is: Process not running: /opt/java15/jdk/bin/java -classpath /opt/apache/apache-ant-1.7.0-mod/lib/ant-launcher.jar org.apache.tools.ant.launch.Launcher -buildfile build.xml dist. Any help? (3 Replies)
Discussion started by: gull05
3 Replies

8. Red Hat

Service restart and check if running

Hello, I'l like to create a script that restart a service (/etc/init.d/httpd restart) and also check if after restart the service is actually running. Sometimes it happen that at the first try the service fails to restart. Thanks (2 Replies)
Discussion started by: bazzola
2 Replies

9. Red Hat

Error Restart apache

Hi Im apache service restart Error $ service httpd reload Reloading httpd: service httpd reload Reloading httpd: service httpd start Starting httpd: (98)Address already in use: make_sock: could not bind to address :80 (98)Address already in... (1 Reply)
Discussion started by: mnnn
1 Replies

10. Red Hat

Apache service not coming up after restart

When I update the server with new SSL certificates, and restart httpd, I get errors : # service httpd restart Stopping httpd: rm: cannot remove `/usr/local/apache2/bin/httpd/logs/httpd.pid': Not a directory Starting httpd: ... (0 Replies)
Discussion started by: anaigini45
0 Replies
BOS_RESTART(8)						       AFS Command Reference						    BOS_RESTART(8)

NAME
bos_restart - Restarts a server process SYNOPSIS
bos restart -server <machine name> [-instance <instances>+] [-bosserver] [-all] [-cell <cell name>] [-noauth] [-localauth] [-help] bos res -s <machine name> [-i <instances>+] [-b] [-a] [-c <cell name>] [-n] [-l] [-h] DESCRIPTION
The bos restart command stops and immediately restarts server processes on the server machine named by the -server argument. Indicate which process or processes to restart by providing one of the following arguments: o The -instance argument names each AFS server process to stop and restart immediately, regardless of its status flag in the /etc/openafs/BosConfig file. Do not include bosserver in the list of processes; use the -bosserver flag instead. o The -bosserver flag stops all AFS server processes running on the machine, including the BOS Server. A new BOS Server starts immediately, and it starts a new instance of each process that is marked with the "Run" status flag in the BosConfig file. o The -all flag stops all AFS server processes running on the machine, except the BOS Server, and immediately restarts the processes that are marked with the "Run" status flag in the BosConfig file. This command does not change a process's status flag in the BosConfig file. OPTIONS
-server <machine name> Indicates the server machine on which to restart each process. Identify the machine by IP address or its host name (either fully- qualified or abbreviated unambiguously). For details, see bos(8). -instance <instances>+ Names each process to stop and then restart immediately regardless of its status flag setting. Use the process name assigned with the -instance argument to the bos create command. The output from the bos status command lists the names. Provide this flag or one of the -bosserver or -all options, but do not combine them. -bosserver Stops all AFS server processes running on the machine, including the BOS Server. A new BOS Server instance immediately starts, and starts all processes marked with the "Run" status flag in the BosConfig file. Provide this flag or one of the -instance or -all options, but do not combine them. -all Stops all AFS server processes running on the machine other than the BOS Server, and immediately restarts the processes marked with the Run status flag in the BosConfig file. Provide this flag or one of the -instance or -bosserver options, but do not combine them. -cell <cell name> Names the cell in which to run the command. Do not combine this argument with the -localauth flag. For more details, see bos(8). -noauth Assigns the unprivileged identity "anonymous" to the issuer. Do not combine this flag with the -localauth flag. For more details, see bos(8). -localauth Constructs a server ticket using a key from the local /etc/openafs/server/KeyFile file. The bos command interpreter presents the ticket to the BOS Server during mutual authentication. Do not combine this flag with the -cell or -noauth options. For more details, see bos(8). -help Prints the online help for this command. All other valid options are ignored. EXAMPLES
The following command stops and restarts all processes running on the machine "fs3.abc.com", including the BOS Server. % bos restart -server fs3.abc.com -bosserver The following command stops and restarts all processes running on the machine "fs5.abc.com", excluding the BOS Server. % bos restart -server fs5.abc.com -all The following command stops and restarts the Protection Server and Volume Location (VL) Server processes on the machine "db3.abc.com": % bos restart -server db3.abc.com -instance ptserver vlserver PRIVILEGE REQUIRED
The issuer must be listed in the /etc/openafs/server/UserList file on the machine named by the -server argument, or must be logged onto a server machine as the local superuser "root" if the -localauth flag is included. SEE ALSO
BosConfig(5), KeyFile(5), UserList(5), bos(8), bos_create(8), bos_status(8) COPYRIGHT
IBM Corporation 2000. <http://www.ibm.com/> All Rights Reserved. This documentation is covered by the IBM Public License Version 1.0. It was converted from HTML to POD by software written by Chas Williams and Russ Allbery, based on work by Alf Wachsmann and Elizabeth Cassell. OpenAFS 2012-03-26 BOS_RESTART(8)
All times are GMT -4. The time now is 03:15 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy