I'm working on slurm packaging and jobmonarch opkgs.

I have issues with debian side as debian decided to package postgress in a very 
strange way. pg_ctl is not available in /usr/bin and no alternative exists. It 
is located in a deep path that includes version number. It's difficult to 
handle that in jobmonarch post install script in the opkg.... For the moment, 
only rpm distros are supported.

I need a simple way to:
- check if initdb was run
- add jobarchive user to the pg_hba.conf (trust)
- restart the database

On rpm distro:
# PostgreSQL setup (redhat only)
if (! -e "/var/lib/pgsql/data/PG_VERSION") {
    system("service postgresql initdb");
}

# Allow "jobarchive" user to connect to the database.
edit_pgserver_config();

# Restart the database (redhat only)
system('su - postgres -c "/usr/bin/pg_ctl restart"');

But on debian... pg_ctl is in a path that depends of the version of the package 
that is installed....Wo easy..........no "alternative" installed, nothing in 
/usr/bin........

As I'm not debian expert nor postgress expert, maybe there are easy way to do 
that in both worlds?


As for slurm, I need to implement debian side for the package and I need to 
finish the opkg scripts.

Olivier.

--
   Olivier LAHAYE
   CEA DRT/LIST/DM2I/DIR
------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60134791&iu=/4140/ostg.clktrk
_______________________________________________
Oscar-devel mailing list
Oscar-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oscar-devel

Reply via email to