Index: /branches/eam_branches/ipp-pstamp-20260421/pstamp/scripts/pstamp_save_server_status.pl
===================================================================
--- /branches/eam_branches/ipp-pstamp-20260421/pstamp/scripts/pstamp_save_server_status.pl	(revision 43072)
+++ /branches/eam_branches/ipp-pstamp-20260421/pstamp/scripts/pstamp_save_server_status.pl	(revision 43073)
@@ -16,4 +16,5 @@
 my $save_temps;
 my $pstamp_workdir;
+my $pstamp_rundir;
 
 GetOptions(
@@ -32,9 +33,10 @@
 }
 
+my $ipprc;
+
 if (!$pstamp_workdir) {
-    my $ipprc = PS::IPP::Config->new(); # IPP Configuration
+    $ipprc = PS::IPP::Config->new(); # IPP Configuration
     $pstamp_workdir = metadataLookupStr($ipprc->{_siteConfig}, 'PSTAMP_WORKDIR');
 }
-
 if (!$pstamp_workdir) {
     warn("Failed to find PSTAMP_WORKDIR in the config\n");
@@ -42,4 +44,15 @@
 }
 my $status_file = "$pstamp_workdir/server_status/status.html";
+
+if (!$pstamp_rundir) {
+    if (not defined $ipprc) {
+	$ipprc = PS::IPP::Config->new(); # IPP Configuration
+    }
+    $pstamp_rundir = metadataLookupStr($ipprc->{_siteConfig}, 'PSTAMP_RUNDIR');
+}
+if (!$pstamp_rundir) {
+    warn("Failed to find PSTAMP_RUNDIR in the config\n");
+    exit($PS_EXIT_CONFIG_ERROR);
+}
 
 my ($sec, $min, $hour, $mday, $month, $year) = gmtime;
@@ -61,5 +74,5 @@
     $year, $month, $mday, $hour, $min, $sec;
 
-my $command = "pstamp_server_status --workdir $pstamp_workdir > $file";
+my $command = "pstamp_server_status --workdir $pstamp_workdir --rundir $pstamp_rundir > $file";
 #my $command = "pstamp_server_status > $file";
 my  ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
