[torquedev] [Bug 158] New: [2.5.8] suse.pbs_mom uses never touched file /var/lock/subsys/pbs_mom

bugzilla-daemon at supercluster.org bugzilla-daemon at supercluster.org
Sun Sep 4 15:39:41 MDT 2011


http://www.clusterresources.com/bugzilla/show_bug.cgi?id=158

           Summary: [2.5.8] suse.pbs_mom uses never touched file
                    /var/lock/subsys/pbs_mom
           Product: TORQUE
           Version: 2.5.x
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: enhancement
          Priority: P5
         Component: pbs_mom
        AssignedTo: knielson at adaptivecomputing.com
        ReportedBy: burnus at net-b.de
                CC: torquedev at supercluster.org
   Estimated Hours: 0.0


On SUSE Linux, the directory /var/lock/subsys/ does not exist, the file is
never touched (contrary to contrib/init.d/pbs_mom) and I get the following
rpmlint warning:

  torque-mom.x86_64: W: subsys-unsupported /etc/init.d/pbs_mom
  The init script uses /var/lock/subsys which is not supported by this
  distribution.

I think the following patch should be correct:

--- contrib/init.d/suse.pbs_mom.orig   2011-09-04 23:36:11.000000000 +0200
+++ contrib/init.d/suse.pbs_mom        2011-09-04 23:36:16.000000000 +0200
@@ -47,7 +47,7 @@
                rc_status -v
                ;;
        purge)
-               [ -f /var/lock/subsys/pbs_mom ] && $0 stop
+               checkproc -p $PIDFILE $PBS_DAEMON && $0 stop
                echo -n "Starting TORQUE Mom with purge: "
                startproc $PBS_DAEMON -r $DAEMON_ARGS
                rc_status -v

-- 
Configure bugmail: http://www.clusterresources.com/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


More information about the torquedev mailing list