Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 365713 - sys-cluster/maui-3.3.1 - mismatching spool dir in different files
Summary: sys-cluster/maui-3.3.1 - mismatching spool dir in different files
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal minor (vote)
Assignee: Gentoo Cluster Team
Depends on:
Reported: 2011-05-02 14:26 UTC by Zerony
Modified: 2011-05-08 19:17 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Note You need to log in before you can comment on or make changes to this bug.
Description Zerony 2011-05-02 14:26:48 UTC
in maui-3.3.1.ebuild, which specifies
however, in the init script, which has different spool directory name, /var/spool/maui.
start() {
    ebegin "Starting Maui Scheduler"
    start-stop-daemon  --start --quiet --pidfile /var/spool/maui/ \
    --exec /usr/sbin/maui
    eend ${?}
Those two spool directory names should be same. the init script tries to find under /var/spool/maui, but it actually is in /usr/spool/maui.

Reproducible: Always

Steps to Reproduce:
rc-status will complain maui is crashed.
Obvious mismatching.
Actual Results:  
maui is running, but rc-status shows it is crashed, because it can not find the, which is actually under /usr/spool/maui, instead of /var/spool/maui

Expected Results: is under /usr/spool/maui, instead of /var/spool/maui.
I suggest using /var/spool/maui, because torque also uses /usr/spool/maui
Comment 1 Jeremy Olexa (darkside) (RETIRED) archtester Gentoo Infrastructure gentoo-dev Security 2011-05-06 03:38:32 UTC
How is this a Gentoo Prefix bug? /var/spool is passed to ./configure. the program doesn't honor it.. add prefix@g.o back if needed.
Comment 2 Zerony 2011-05-08 19:17:50 UTC
(In reply to comment #1)

I found I did not state the bug clearly because of copy and paste.

In 3.3.1 ebuild, the spool-dir is set to 
--with-spooldir="${EPREFIX}"/usr/spool/maui (in my first report, I accidentally copied the line from my modified ebuild. --with-spooldir="${EPREFIX}"/var/spool/maui is a correct approach) and the init script pbs_maui requires the spool-dir is /var/spool/maui/. The spool dir should be consistent.
Basically, it is just change usr to var and the problem will be fixed.