07-06-2011
the process might have created a pid file when it run. when you restarted the script, this pid file still exists and was found by the script thus it assumes there are still instances running. rebooting the machine clears the /var/run since its a tmpfs filesystem. the folder usually contains the pid/lock files.
This User Gave Thanks to tamitot For This Post:
9 More Discussions You Might Find Interesting
1. High Performance Computing
Here are steps for installing the Solaris 10 11/06 OS, Solaris Cluster (formerly Sun Cluster) 3.2 software, QFS 4.5, and Oracle 10gR2 RAC. Also provided are instructions on how to configure QFS and Solaris Volume Manager for use with Oracle 10gR2 RAC.
More... (0 Replies)
Discussion started by: Linux Bot
0 Replies
2. High Performance Computing
Gurus,
I have several questions :
1. Does Solaris 10/OpenSolaris has some kind of web based management tools ?
Currently I am using WebMin. It worked fine, however I am very curious to use
the tools provided by Sun Microsystem.
Please advise for package name and how to activate.... (0 Replies)
Discussion started by: Zepiroth
0 Replies
3. Solaris
Hi All,
I am new to Solaris. I have to install some latest patches on my SPARC Machine running Solaris 10. I have installed the required patches.
Please guide me through the rest of the process. Please include even minute details so that I don't face any problems while doing this activity.
... (0 Replies)
Discussion started by: kamaldeep1986
0 Replies
4. UNIX for Advanced & Expert Users
Hi All,
I am new to Solaris. I have to install some latest patches on my SPARC Machine running Solaris 10. I have installed the required patches.
Please guide me through the rest of the process. Please include even minute details so that I don't face any problems while doing this activity.... (3 Replies)
Discussion started by: kamaldeep1986
3 Replies
5. Solaris
While performing, solaris 10 U7 interactive initial installation I selected 'End User System Support' software group as below:
Select Software ___________________________________________________________
Select the Solaris software to install on the system.
NOTE: After selecting a software... (0 Replies)
Discussion started by: ramnagaraj
0 Replies
6. Solaris
Hello,
As explained, I've encountered an issue while installing Solaris 10 SPARC Recommended Patch Cluster (2009.10.23).
Actually, patch no 120011-14 stops with the following error:
ERROR: attribute verification of </var/run/.patchSafeMode/root/usr/bin/passwd> failed
file type <f>... (6 Replies)
Discussion started by: a.mauger
6 Replies
7. Solaris
Not very helpful to say the least. Seems to read the flar file and go through the upgrade and then come up with this error.
Any ideas? (1 Reply)
Discussion started by: psychocandy
1 Replies
8. Solaris
Dear All,
Has Oracle stopped updating Solaris 10 recommended patch cluster ? From suport.oracle.com i could see the last patch bundle was released on 11th july and there has been no updates after that.
Does anyone know about any official announcement from oracle on this ?
Thanks ... (1 Reply)
Discussion started by: abhi_8029
1 Replies
9. Solaris
Hi,
I installed Solaris 10 recommended patch cluster (patch bundle of 400+ patches). After reboot global zone is fine, but a lot of services was in uninitialized state. I had to run /lib/svc/bin/restore_repository and then services came online.
Now I can't login to server with NIS account... (1 Reply)
Discussion started by: ron323232
1 Replies
LEARN ABOUT NETBSD
pidfile
PIDFILE(3) BSD Library Functions Manual PIDFILE(3)
NAME
pidfile -- write a daemon pid file
LIBRARY
System Utilities Library (libutil, -lutil)
SYNOPSIS
#include <util.h>
int
pidfile(const char *path);
DESCRIPTION
pidfile() creates a file containing the process ID of the caller program. The pid file can be used as a quick reference if the process needs
to be sent a signal. When the program exits, the pid file is removed automatically, unless the program receives a fatal signal.
If path is NULL or a plain basename (a name containing no directory components), the pid file is created in the /var/run directory. The file
name has the form /var/run/basename.pid. The basename part is either the value of path if it was not NULL, or the program name as returned
by getprogname(3) otherwise.
If path is an absolute or relative path (i.e. it contains the '/' character), the pid file is created in the provided location.
Note that only the first invocation of pidfile() causes a pid file to be written; subsequent invocations have no effect unless a new path is
supplied. If called with a new path, pidfile() will remove the old pid file and write the new one.
RETURN VALUES
pidfile() returns 0 on success and -1 on failure.
SEE ALSO
atexit(3)
HISTORY
The pidfile() function call appeared in NetBSD 1.5. Support for creating pid files in any arbitrary path was added in NetBSD 6.0.
BUGS
pidfile() uses atexit(3) to ensure the pid file is unlinked at program exit. However, programs that use the _exit(2) function (for example,
in signal handlers) will not trigger this behaviour.
BSD
March 23, 2011 BSD