summaryrefslogtreecommitdiff
path: root/rhnop-server
diff options
context:
space:
mode:
authorChristian Pointner <equinox@helsinki.at>2011-03-30 14:57:52 (GMT)
committerChristian Pointner <equinox@helsinki.at>2011-03-30 14:57:52 (GMT)
commit8cdba95358923a36776f602667957fcd2116e30e (patch)
tree4654c094e05f1a05f339939c941c4f1292d45aa7 /rhnop-server
parent6e6ef2f45956e168a5e1133f98aaba61ade561d4 (diff)
added runit script
Diffstat (limited to 'rhnop-server')
-rw-r--r--rhnop-server/debian/control2
-rw-r--r--rhnop-server/debian/rhnop-server.runit3
-rwxr-xr-xrhnop-server/debian/rules3
3 files changed, 7 insertions, 1 deletions
diff --git a/rhnop-server/debian/control b/rhnop-server/debian/control
index 13994e5..1df71d3 100644
--- a/rhnop-server/debian/control
+++ b/rhnop-server/debian/control
@@ -8,7 +8,7 @@ Homepage: http://www.helsinki.at/
Package: rhnop-server
Architecture: any
-Depends: ${shlibs:Depends}, adduser, liblua5.1-mq, liblua5.1-socket2, liblua5.1-sql-mysql-2, liblua5.1-posix1
+Depends: ${shlibs:Depends}, adduser, liblua5.1-mq, liblua5.1-socket2, liblua5.1-sql-mysql-2, liblua5.1-posix1, runit
Description: Radio Helsinki now playing information system - server
The Radio Helsinki now playing information system gathers the
now playing info into an mysql database for further processing.
diff --git a/rhnop-server/debian/rhnop-server.runit b/rhnop-server/debian/rhnop-server.runit
new file mode 100644
index 0000000..0fc95ff
--- /dev/null
+++ b/rhnop-server/debian/rhnop-server.runit
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+chpst -u rhnop:rhnop /usr/bin/rhnop-server
diff --git a/rhnop-server/debian/rules b/rhnop-server/debian/rules
index d24a35f..f697191 100755
--- a/rhnop-server/debian/rules
+++ b/rhnop-server/debian/rules
@@ -34,6 +34,9 @@ install: build
dh_testroot
dh_installdirs
$(MAKE) DESTDIR=$(CURDIR)/debian/rhnop-server install
+ mkdir -p $(CURDIR)/debian/rhnop-server/etc/sv/rhnop-server
+ ln -s /var/run/sv.rhnop-server/ $(CURDIR)/debian/rhnop-server/etc/sv/rhnop-server/supervise
+ cp $(CURDIR)/debian/rhnop-server.runit $(CURDIR)/debian/rhnop-server/etc/sv/rhnop-server/run
# Build architecture-independent files here.
binary-indep: install