releasesystem
view release on metacpan or search on metacpan
Autodoc/dev_rls_tool_doc.html view on Meta::CPAN
$LOGFILE = $opts{'log'} || "$log_dir/dev_release.log";
# Undocumented incremental debugging option:
$DEBUG = $opts{D} || 0;
$DEBUG |= 1 if ($opts{debug});
STDOUT->autoflush;
#
# Save ourselves some repeated primitive operations by caching them here:
#
$opts{date} = scalar localtime;
$opts{user} = $ENV{LOGNAME} || (getpwuid($>))[0] || getlogin;
$opts{wmpassword} = $ENV{WMPASSWD} || '';
#
# Set up more extensive die()- and warn()-handlers
#
$SIG{__DIE__} = sub {
chomp $_[0];
write_log_line($LOGFILE, "$opts{date} [$$] $_[0]");
die "$_[0]\n";
};
Autodoc/dev_rls_tool_doc.html view on Meta::CPAN
read_config_file \%CONFIG;
#
# Set the value that the ACL modules used for a base directory:
#
if (defined $CONFIG{ACL_DIR})
{
if ($CONFIG{ACL_DIR} !~ m|^/|)
{
my $homedir = ($CONFIG{OWNER} =~ /^\d+$/) ?
(getpwuid($CONFIG{OWNER}))[7] :
(getpwnam($CONFIG{OWNER}))[7];
$CONFIG{ACL_DIR} = "$homedir/$CONFIG{ACL_DIR}";
}
ACL_dir $CONFIG{ACL_DIR};
}
elsif (-d "$log_dir/etc/acl")
{
ACL_dir "$log_dir/etc/acl";
Autodoc/dev_rls_tool_doc.html view on Meta::CPAN
#
if (-s $file) # size != 0
# No haltfile, no worries</pre>
<h2>Code:</h2> <pre>{
my $cmd = shift;
my $prefix = $CONFIG{HALTFILE_PREFIX};
unless (defined $prefix and $prefix)
{
my $home = ($CONFIG{OWNER} =~ /^\d+$/o) ?
(getpwuid($CONFIG{OWNER}))[7] : (getpwnam($CONFIG{OWNER}))[7];
unless (defined $home and $home)
{
warn "$cmd: test_for_halt: Could not find haltfiles area, " .
"skipping\n";
return 0;
}
$prefix = "$home/etc/halt-";
}
if (! $prefix =~ m|^/|o)
{
my $home = ($CONFIG{OWNER} =~ /^\d+$/o) ?
(getpwuid($CONFIG{OWNER}))[7] : (getpwnam($CONFIG{OWNER}))[7];
unless (defined $home and $home)
{
warn "$cmd: test_for_halt: Could not find haltfiles area, " .
"skipping\n";
return 0;
}
$prefix = "$home/$prefix";
}
Autodoc/process_content_doc.html view on Meta::CPAN
require IO::File;
use IMS::ReleaseMgr::Utils qw(write_log_line eval_make_target
file_mirror_specification
DBI_mirror_specification);
umask 0;
$ENV{PATH} = '/bin:/usr/bin:/usr/sbin'; # Yes, I really mean this
$date = scalar localtime time;
$userid = getlogin || (getpwuid($>))[0];
$cwd = cwd;
$VERSION = do {my @r=(q$Revision: 1.1 $=~/\d+/g);sprintf "%d."."%02d"x$#r,@r};
$revision = q{$Id: process_content_doc.html,v 1.1 2000/05/04 21:14:33 idsweb Exp $ };
$USAGE = "Usage: $cmd mirror_group [ -H host ] [ -t level ] [ -T file ]
\t[ -c file ]
Where:
-H host\t\tUse 'host' for identification (instead of system value)
-t num\t\tEnable tracing (num sets level)
devmgr/dev_rls_tool view on Meta::CPAN
$LOGFILE = $opts{'log'} || "$log_dir/dev_release.log";
# Undocumented incremental debugging option:
$DEBUG = $opts{D} || 0;
$DEBUG |= 1 if ($opts{debug});
STDOUT->autoflush;
#
# Save ourselves some repeated primitive operations by caching them here:
#
$opts{date} = scalar localtime;
$opts{user} = $ENV{LOGNAME} || (getpwuid($>))[0] || getlogin;
$opts{wmpassword} = $ENV{WMPASSWD} || '';
#
# Set up more extensive die()- and warn()-handlers
#
$SIG{__DIE__} = sub {
chomp $_[0];
write_log_line($LOGFILE, "$opts{date} [$$] $_[0]");
die "$_[0]\n";
};
devmgr/dev_rls_tool view on Meta::CPAN
read_config_file \%CONFIG;
#
# Set the value that the ACL modules used for a base directory:
#
if (defined $CONFIG{ACL_DIR})
{
if ($CONFIG{ACL_DIR} !~ m|^/|)
{
my $homedir = ($CONFIG{OWNER} =~ /^\d+$/) ?
(getpwuid($CONFIG{OWNER}))[7] :
(getpwnam($CONFIG{OWNER}))[7];
$CONFIG{ACL_DIR} = "$homedir/$CONFIG{ACL_DIR}";
}
ACL_dir $CONFIG{ACL_DIR};
}
elsif (-d "$log_dir/etc/acl")
{
ACL_dir "$log_dir/etc/acl";
devmgr/dev_rls_tool view on Meta::CPAN
#
###############################################################################
sub test_for_halt
{
my $cmd = shift;
my $prefix = $CONFIG{HALTFILE_PREFIX};
unless (defined $prefix and $prefix)
{
my $home = ($CONFIG{OWNER} =~ /^\d+$/o) ?
(getpwuid($CONFIG{OWNER}))[7] : (getpwnam($CONFIG{OWNER}))[7];
unless (defined $home and $home)
{
warn "$cmd: test_for_halt: Could not find haltfiles area, " .
"skipping\n";
return 0;
}
$prefix = "$home/etc/halt-";
}
if (! $prefix =~ m|^/|o)
{
my $home = ($CONFIG{OWNER} =~ /^\d+$/o) ?
(getpwuid($CONFIG{OWNER}))[7] : (getpwnam($CONFIG{OWNER}))[7];
unless (defined $home and $home)
{
warn "$cmd: test_for_halt: Could not find haltfiles area, " .
"skipping\n";
return 0;
}
$prefix = "$home/$prefix";
}
rlsmgr/process_content view on Meta::CPAN
require IO::File;
use IMS::ReleaseMgr::Utils qw(write_log_line eval_make_target
file_mirror_specification
DBI_mirror_specification);
umask 0;
$ENV{PATH} = '/bin:/usr/bin:/usr/sbin'; # Yes, I really mean this (security)
$date = scalar localtime time;
$userid = getlogin || (getpwuid($>))[0];
$cwd = cwd;
$VERSION = do {my @r=(q$Revision: 1.5 $=~/\d+/g);sprintf "%d."."%02d"x$#r,@r};
$revision = q{$Id: process_content,v 1.5 2000/03/10 22:32:12 idsweb Exp $ };
$USAGE = "Usage: $cmd mirror_group [ -H host ] [ -t level ] [ -T file ]
\t[ -c file ]
Where:
-H host\t\tUse 'host' for identification (instead of system value)
-t num\t\tEnable tracing (num sets level)
utils/sysmonitor/sysmonitord view on Meta::CPAN
fork_this() if (defined $ARGV[0] and $ARGV[0] eq '-f');
$SIG{'HUP'} = sub {&log ("Caught HUP Alarm Signal", "INFO"); $ALARM_VAR=1;}; #trigger reset
$SIG{'ALRM'} = sub {&log ("Caught Alarm Signal", "INFO"); $ALARM_VAR=1;}; #trigger reset
###############################################################
# Global Setup
$DEBUG = 0; # Normally set to 0. Use 1 for debugging
$DEBUG_EMAIL = (getlogin || (getpwuid ($<))[0]) . "\@nafohq.hp.com";
if ($DEBUG) # debug values
{
$STARTUP_SLEEP = 1; # 1 seconds
$SLEEP_TIME = 10; # 10 seconds
$CONFIG_FILE = "$ENV{HOME}/public_html/wmTools/scripts/syscheck/syscheck.rc";
$SYSCHECK_LOG = "$ENV{HOME}/public_html/wmTools/scripts/syscheck/log";
$PID_FILE = "$ENV{HOME}/public_html/wmTools/scripts/syscheck/pid";
}
else #standard values
( run in 0.350 second using v1.01-cache-2.11-cpan-454fe037f31 )