Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

pidfilehack(8) [debian man page]

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)
Man Page

15 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

apache on linux

hi i would like to know how to cofigure an apache server and run it also plz tell me about "dns2go". thanks in advancedns2go (5 Replies)
Discussion started by: kgovindaraju123
5 Replies

2. UNIX for Dummies Questions & Answers

how do u uninstall apache

i am running redhat 7.3 how do i unistall apache if i installed from a tarball? really need to know this thanx (8 Replies)
Discussion started by: matt2kjones
8 Replies

3. UNIX for Dummies Questions & Answers

moving apache part 2

Hi everybody..... please help me in moving apache 2.2 over to another server remotely............. still having problems thank you (12 Replies)
Discussion started by: marinob007
12 Replies

4. Solaris

How to fix a fault with apache in SUN server

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)
Discussion started by: vamshikrishnab
30 Replies

5. Solaris

How to find the process that is using the port 80 and apache server.

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)
Discussion started by: vamshikrishnab
7 Replies

6. Solaris

apache installation

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)
Discussion started by: ambavaram
6 Replies

7. Solaris

Apache start issue

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)
Discussion started by: rs266
6 Replies

8. Shell Programming and Scripting

apache threshold

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)
Discussion started by: learnbash
9 Replies

9. SuSE

How to start Apache2 and vsftpd at boot

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)
Discussion started by: real-chess
9 Replies

10. UNIX for Dummies Questions & Answers

Bash: permission denied

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)
Discussion started by: emveedee
12 Replies

11. Programming

Image not displaying through apache

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)
Discussion started by: amisubha
7 Replies

12. Red Hat

Apache chown on its files not working

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)
Discussion started by: cterra
7 Replies

13. Web Development

Passing variable from PHP to bash script

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)
Discussion started by: kieranfoley
10 Replies

14. Shell Programming and Scripting

Display status of instances in apache - Where to start

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)
Discussion started by: baris35
9 Replies

15. Shell Programming and Scripting

Syntax for sudoers file for mv command

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)
Discussion started by: ron323232
7 Replies