Hello,

I wasn't sure if this is the usual place to submit bugs but I didn't found an `issues' page in the Slurm repo, so I'm going to use this via.

`config.status' doesn't handle some vars correctly. In particular, I was building without specifying any path. This is what I get after running `./configure` and then `head -n 32 etc/init.d.slurm`:

===
#!/bin/bash
#
# chkconfig: 345 90 10
# description: SLURM is a simple resource management system which \
#              manages exclusive access to a set of compute \
#              resources and distributes work to those resources.
#
# processname: ${exec_prefix}/sbin/slurmd
# pidfile: /var/run/slurmd.pid
#
# processname: ${exec_prefix}/sbin/slurmctld
# pidfile: /var/run/slurmctld.pid
#
# config: /etc/sysconfig/slurm
#
### BEGIN INIT INFO
# Provides:          slurm
# Required-Start:    $remote_fs $syslog $network munge
# Required-Stop:     $remote_fs $syslog $network munge
# Should-Start:      $named
# Should-Stop:       $named
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Short-Description: slurm daemon management
# Description:       Start slurm to provide resource management
### END INIT INFO

BINDIR="${exec_prefix}/bin"
CONFDIR="${prefix}/etc"
LIBDIR="${exec_prefix}/lib"
SBINDIR="${exec_prefix}/sbin"
===

Then, when I run with `./configure --prefix=/usr/local --bindir=/usr/local/bin --sbindir=/usr/local/sbin --exec-prefix=/usr/local --libdir=/usr/local/lib --sysconfdir=/usr/local/etc`:

===
#!/bin/bash
#
# chkconfig: 345 90 10
# description: SLURM is a simple resource management system which \
#              manages exclusive access to a set of compute \
#              resources and distributes work to those resources.
#
# processname: /usr/local/sbin/slurmd
# pidfile: /var/run/slurmd.pid
#
# processname: /usr/local/sbin/slurmctld
# pidfile: /var/run/slurmctld.pid
#
# config: /etc/sysconfig/slurm
#
### BEGIN INIT INFO
# Provides:          slurm
# Required-Start:    $remote_fs $syslog $network munge
# Required-Stop:     $remote_fs $syslog $network munge
# Should-Start:      $named
# Should-Stop:       $named
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Short-Description: slurm daemon management
# Description:       Start slurm to provide resource management
### END INIT INFO

BINDIR="/usr/local/bin"
CONFDIR="/usr/local/etc"
LIBDIR="/usr/local/lib"
SBINDIR="/usr/local/sbin"
===

Just defining `--prefix' and `--exec-prefix' has the same effect as not defining anything at all. Basically, when it has to replace `paths vars' to their defaults, it doesn't.

Same happens with `etc/init.d.slurmdbd' and don't if any other file, but I suspect that they're plenty. I don't have time (neither the will and the masochist spirit (: ) to learn `automake' so I won't fix this, but I hope someone does.


-- lv.

Reply via email to