Added PostgreSQL job.

svn path=/nixpkgs/trunk/; revision=9831
This commit is contained in:
Michael Raskin
2007-12-03 04:48:44 +00:00
parent 70decf6b0e
commit c2c528b6fa
3 changed files with 58 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
args: with args;
stdenv.mkDerivation {
name = "upstart-jobcontrol";
buildCommand = "
mkdir -p \$out/bin
echo '
file=/etc/event.d/\$1
shift
controlscript=\$(egrep exec\\|respawn \$file | tail | sed -e s/^\\\\s\\\\+//g | sed -e s/\\\\s\\\\+/\\ /g | cut -f 2 -d \\ )
echo Running \$controlscript \"\$@\"
\$controlscript \"\$@\"
' >\$out/bin/jobcontrol
chmod a+x \$out/bin/jobcontrol
";
}