Public bug reported:

The init.d script for the torque-mom package is basically broken for all
cases except starting a new torque-mom server when none is running.

1. When called with a torque-mom process already running, it fails (exit with 
1).
2. It doesn't work at stopping a running torque-mom process
3. When stop is called with no running torque-mom process, it fails (exit 1)

# killall pbs_mom
# ps fax | fgrep mom
Exit 1
# /etc/init.d/torque-mom start
 * Starting Torque Mom:                 [ OK ] 
# /etc/init.d/torque-mom start
 * Starting Torque Mom:  pbs_mom: Resource temporarily unavailable (11) in 
pbs_mom, cannot lock '/var/lib/torque/mom_priv/mom.lock' - another mom running
cannot lock '/var/lib/torque/mom_priv/mom.lock' - another mom running
Exit 1
# /etc/init.d/torque-mom stop
 * Stopping Torque Mom:                                                         
                                                                                
                        Exit 1
# ps fax | fgrep mom
10844 ?        Ss     0:00 /usr/sbin/pbs_mom
# killall pbs_mom
# ps fax | fgrep mom
# /etc/init.d/torque-mom stop
 * Stopping Torque Mom: 
Exit 1

** Affects: torque (Ubuntu)
     Importance: Undecided
         Status: New

-- 
/etc/init.d/torque-mom not idempotent, and stop doesn't work
https://bugs.launchpad.net/bugs/256998
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to