pidfilehack(8) System Manager's Manual pidfilehack(8)NAME
pidfilehack - work around daemons that always fork
SYNOPSIS
pidfilehack servicename pidfile command [parameters]
DESCRIPTION
pidfilehack is used to work around daemons that insist on forking into the background, but that do write a correct pid file.
pidfilehack forks the actual service, then waits for the pidfile to be written. Once it can read the pid from the pidfile it will tell
minit the real pid and quit.
USAGE
usually pidfilehack is symlinked as run command of a service.
servicename
the name of the service pidfilehack is installed for.
pidfile
the filename to read the pid from
command
the real command to start
parameters
additional parameters for the command
A typical use of this command will look like this:
/etc/minit/apache
/etc/minit/apache/params
apache
/var/run/apache.pid
apachectl
start
/etc/minit/apache/run
-> /sbin/pidfilehack
AUTHOR
minit was written by Felix von Leitner and can be downloaded from his page at http://www.fefe.de/minit/
This manpage was written by Erich Schubert <erich@debian.org> for the Debian GNU/Linux operating system.
SEE ALSO msvc(8), pidfilehack(8)pidfilehack(8)
Check Out this Related Man Page
msvc(8) System Manager's Manual msvc(8)NAME
msvc - control minit
SYNOPSIS
msvc [ -[uodpchaitko] ] [ -P pid ] service [...]
DESCRIPTION
msvc is the management interface to minit. service is the service directory name relative to /etc/minit. Starting with minit 0.9 you can
also include /etc/minit/ in the service name.
OPTIONS
If no option is given, msvc will just print a small diagnostic message to stdout, saying if the service is up, down or finished, which PID
it has if it is up, and for how long it has been in this state.
-u Up. If the service is not running, start it. If the service stops, restart it.
-o Once. If the service is not running, start it. If the service stops, do not restart it.
-d Down. If the service is running, send it a TERM signal and then a CONT signal. After it stops, do not restart it.
-p Pause. Send the service a STOP signal.
-c Continue. Send the service a CONT signal.
-h Hangup. Send the service a HUP signal.
-a Alarm. Send the service an ALRM signal.
-i Interrupt. Send the service an INT signal.
-t Terminate. Send the service a TERM signal.
-k Terminate. Send the service a KILL signal.
-P pid
Set PID. Tell minit the PID of the service is really pid. This is useful for services that fork themselves in the background but put
their real PID in a file, typically called /var/run/service.pid. Used by pidfilehack.
-D service
Print dependencies. This will print all the names of all the services that were started because this services depended on them.
Please note that this is not done recursively (i.e. if default depends on qmail and qmail depends on log, this will print qmail, not
qmail/log. But msvc -D qmail will print qmail/log).
-H Print history. This will print the names of the ten least recently spawned processes. This is useful if you see a process looping
(initialization fails and minit is restarting it all the time).
RETURN CODES
Generally, msvc return zero if everything is OK or 1 on error (could not open /lib/minit/in or /lib/minit/out or there is no process with
the given name). In diagnostic mode, it will exit 0 if the service is up, 2 if it is down or 3 if it is finished.
SEE ALSO pidfilehack(8), svc(8)msvc(8)
Hi,
We are logging into the SUN OS 5.9 server by using putty. We are not able to open the webpage that is using the apache server in our main server.
when i checked for my apache server, It is running fine.
It is given as
$ ps -ef|grep httpd
root 421 1 0 08:57:11 ? ... (30 Replies)
How to find the process that is using the port 80 and apache server.
When i used the command 'netstat -a|grep 80' it given that port 80 is in listening mode.
I had used the following command:
telnet localhost 80
GET /
I had got some HTML script.
But when I accessed the GUI ( url is... (7 Replies)
I have installed sunsolaris 10 in sparc machine.In that how to run apache
bydefault apache is installed on /etc file.
I have logged in as a root
changed the directory to cd /etc/apache2/
from there i have copied httpd.conf-example to httpd.conf
#cp httpd.conf-example httpd.conf
after... (6 Replies)
Hi group,
I need help to start apache in following scenario:
1) Say apache is installed on solaris OS by user 'root'.
2) An entry is there in httpd.conf that says to start apache process as user:
#User <RUN_AS_USER> is edited as
User user1
2) Now say user2 has logged and tries to start... (6 Replies)
Hi folks,
how can i check apache threshold values via shell scripting and what factors need to check via shell scripting process or number of users or what.
pls do advice me.
Thanks,
Bash (9 Replies)
My apache and ftp server is working fine but when I reboot the system ftp and web server is not running automatically. Please advise on how to start apache and ftp at boot. (9 Replies)
Hello,
I have a problem creating files in a certain folder. I installed apache and mysql today, using this guide:
http://computerfaq.be/ubuntu-apache-mysql-php-server-installeren/
(can't post links yet :( )
Instead of /home/www/html I used /home/www/ for the document root.
Now I... (12 Replies)
I am running a html script through apache server on fedora using XAMPP 1.7.7. The apache version is 2.0 When I am trying to run a html page having an image through apache, its not displaying the image. What can be the reason? (7 Replies)
Hello,
My apache user generate one file :
# ls -lsa /tmp/reference_file.csv
76 -rwxrwxrwx 1 apache apache 69921 Aug 16 14:14 tmp/reference_file.csv
the user and the group belong to apache, but when i am trying to change it :
su -l apache -s /bin/bash
-bash-3.00$ whoami
apache... (7 Replies)
I am totally new to PHP and I am trying to create a script that will as a user for a hostname and then use the "hostname" variable to generate a report using REST API.
I am able to create the html script and php script to GET the "hostname" but I am having trouble passing the hostname variable... (10 Replies)
Hello,
I know this is not a simple question so I just need to know where to start for below project:
I am running under Ubuntu 18.04
What I'd like to see in apache page is to display status of particular process pids.
ps aux | grep keywords.txt
keywords.txt
word1
word2
word3
word4... (9 Replies)
Hi,
On one of Solaris 10 server, apache service is running. Due to audit requirement, its error_log grows bigger and we are required to keep that. Sometimes it grows more than 200GB and fills up file-system.
Purpose is, if error_log touches 10GB, apache service should stop, error_log should... (7 Replies)