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 DEBIAN
file::pid
File::Pid(3pm) User Contributed Perl Documentation File::Pid(3pm)
NAME
File::Pid - Pid File Manipulation
SYNOPSIS
use File::Pid;
my $pidfile = File::Pid->new({
file => '/some/file.pid',
});
$pidfile->write;
if ( my $num = $pidfile->running ) {
die "Already running: $num
";
}
$pidfile->remove;
DESCRIPTION
This software manages a pid file for you. It will create a pid file, query the process within to discover if it's still running, and remove
the pid file.
new
my $pidfile = File::Pid->new;
my $thisfile = File::Pid->new({
file => '/var/run/daemon.pid',
});
my $thisfileandpid = File::Pid->new({
file => '/var/run/daemon.pid',
pid => '145',
});
This constructor takes two optional paramters.
"file" - The name of the pid file to work on. If not specified, a pid file located in "File::Spec->tmpdir()" will be created that matches
"(File::Basename::basename($0))[0] . '.pid'". So, for example, if $0 is ~/bin/sig.pl, the pid file will be /tmp/sig.pl.pid.
"pid" - The pid to write to a new pidfile. If not specified, $$ is used when the pid file doesn't exist. When the pid file does exist, the
pid inside it is used.
file
my $pidfile = $pidfile->file;
Accessor/mutator for the filename used as the pid file.
pid
my $pid = $pidfile->pid;
Accessor/mutator for the pid being saved to the pid file.
write
my $pid = $pidfile->write;
Writes the pid file to disk, inserting the pid inside the file. On success, the pid written is returned. On failure, "undef" is returned.
running
my $pid = $pidfile->running;
die "Service already running: $pid
" if $pid;
Checks to see if the pricess identified in the pid file is still running. If the process is still running, the pid is returned. Otherwise
"undef" is returned.
remove
$pidfile->remove or warn "Couldn't unlink pid file
";
Removes the pid file from disk. Returns true on success, false on failure.
program_name
This is a utility method that allows you to determine what "File::Pid" thinks the program name is. Internally this is used when no pid file
is specified.
SEE ALSO
perl.
AUTHOR
Casey West, <casey@geeknest.com>.
COPYRIGHT
Copyright (c) 2005 Casey West. All rights reserved.
This module is free software; you can redistribute it and/or modify it
under the same terms as Perl itself.
perl v5.8.8 2008-04-05 File::Pid(3pm)