]> git.pld-linux.org Git - packages/postgresql.git/blobdiff - postgresql-instance.upstart
- proof of concept native upstart job implementation: postgresql as an example
[packages/postgresql.git] / postgresql-instance.upstart
diff --git a/postgresql-instance.upstart b/postgresql-instance.upstart
new file mode 100644 (file)
index 0000000..e0274e0
--- /dev/null
@@ -0,0 +1,18 @@
+
+stop on pld.shutdown-started
+stop on stopping postgresql
+
+instance $DATADIR
+
+env DATADIR=/var/lib/pgsql
+
+script
+       exec >>/var/log/pgsql 2>&1
+       exec /sbin/setuidgid -s postgres \
+               /usr/bin/postgres -D $DATADIR
+end script
+
+
+
+
+
This page took 0.031602 seconds and 4 git commands to generate.