/etc/init.d/torque-mom not idempotent, and stop doesn't work
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
torque (Ubuntu) |
Fix Released
|
Undecided
|
Morten Kjeldgaard |
Bug Description
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.
* Starting Torque Mom: [ OK ]
# /etc/init.
* Starting Torque Mom: pbs_mom: Resource temporarily unavailable (11) in pbs_mom, cannot lock '/var/lib/
cannot lock '/var/lib/
Exit 1
# /etc/init.
* 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.
* Stopping Torque Mom:
Exit 1
Related branches
Changed in torque: | |
assignee: | nobody → mok0 |
This bug was fixed in the package torque - 2.3.6+dfsg-0ubuntu1
--------------- dfsg-0ubuntu1) jaunty; urgency=low
torque (2.3.6+
* New upstream release (LP: #235385). 0ubuntu1. 1 failed to install d/torque- mom not idempotent, and stop doesn't work lib/torque/ sched_priv/ . torque/ server_ priv/jobs/ , lib/torque/ server_ priv/queues/ , lib/torque/ server_ priv/accounting / and lib/torque/ mom_priv/ jobs/ are now installed in their respective
* Torque-server init script fails during installation and
removal (LP: #223649) fixed, "set -e" removed from init script.
* Package torque-scheduler 2.1.8+dfsg-
(LP: #244440 LP: #270574) fixed, "set -e" removed from init script.
* /etc/init.
(LP: #256998) Fixed, "set -e" removed from init script.
* Torque-scheduler prints errors during package configuration
(LP: #270653). Reason: missing dir sched_config. Fixed,
package installs FIFO scheduler config file in
/var/
* Package torque-mom 2.1.8+dfsg-0ubuntu1 failed to
install/upgrade (LP: #276575 LP: #291674). Reason: missing directories.
Fixed, /var/lib/
/var/
/var/
/var/
packages.
* Package torque-gui missing most of the files it needs to run!
(LP: #281360). Reason: missing *.tk etc. files from src/gui
Fixed: /usr/lib/xpbs now shipped in package
* changed patch system to quilt.
-- Morten Kjeldgaard <email address hidden> Mon, 16 Feb 2009 17:32:28 +0100