From 524da814660fa35bca4a24d0faa0a10b7eab5c6f Mon Sep 17 00:00:00 2001 From: root Date: Mon, 20 Aug 2012 00:02:06 +0000 Subject: Mon Aug 20 00:02:06 UTC 2012 --- community/fcgiwrap/PKGBUILD | 8 ++++++-- community/fcgiwrap/fcgiwrap.service | 13 +++++++++++++ 2 files changed, 19 insertions(+), 2 deletions(-) create mode 100644 community/fcgiwrap/fcgiwrap.service (limited to 'community/fcgiwrap') diff --git a/community/fcgiwrap/PKGBUILD b/community/fcgiwrap/PKGBUILD index e3c68122d..2237fc3a7 100644 --- a/community/fcgiwrap/PKGBUILD +++ b/community/fcgiwrap/PKGBUILD @@ -1,4 +1,4 @@ -# $Id: PKGBUILD 57830 2011-11-03 10:18:16Z lfleischer $ +# $Id: PKGBUILD 75304 2012-08-18 12:28:57Z lfleischer $ # Maintainer: Lukas Fleischer # Contributor: Aaron Bull Schaefer # Contributor: Ron Huang @@ -6,7 +6,7 @@ pkgname=fcgiwrap pkgver=1.0.3 _gitrev='2e301c8' -pkgrel=2 +pkgrel=3 pkgdesc='A simple server for running CGI applications over FastCGI.' arch=('i686' 'x86_64') url='http://nginx.localdomain.pl/wiki/FcgiWrap' @@ -16,10 +16,12 @@ backup=('etc/conf.d/fcgiwrap') source=("https://github.com/downloads/gnosek/fcgiwrap/${pkgname}-${pkgver}.tar.gz" 'fcgiwrap.conf.d' 'fcgiwrap.rc.d' + 'fcgiwrap.service' 'LICENSE') md5sums=('be73d90df7c4442084463e2815fc213d' '9fbb5b0e861ffea74e655143a4c1a8f9' '71ea12f43aebca39f73ff2e0b684f361' + 'fda6e50f609ede7c599caac8a7bb127a' '5aee62c27b4308f25ab32f05da387366') build() { @@ -37,4 +39,6 @@ package() { install -Dm0644 ../fcgiwrap.conf.d "${pkgdir}/etc/conf.d/${pkgname}" install -Dm0755 ../fcgiwrap.rc.d "${pkgdir}/etc/rc.d/${pkgname}" install -Dm0644 ../LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" + + install -Dm0644 "${srcdir}/fcgiwrap.service" "${pkgdir}/usr/lib/systemd/system/fcgiwrap.service" } diff --git a/community/fcgiwrap/fcgiwrap.service b/community/fcgiwrap/fcgiwrap.service new file mode 100644 index 000000000..f59f18db2 --- /dev/null +++ b/community/fcgiwrap/fcgiwrap.service @@ -0,0 +1,13 @@ +[Unit] +Description=Simple server for running CGI applications over FastCGI +After=syslog.target network.target remote-fs.target nss-lookup.target + +[Service] +Type=forking +Restart=on-abort +PIDFile=/var/run/fcgiwrap.pid +ExecStart=/usr/bin/spawn-fcgi -a 127.0.0.1 -p 9001 -u http -g http -- /usr/sbin/fcgiwrap +ExecStop=/usr/bin/kill -15 $MAINPID + +[Install] +WantedBy=multi-user.target -- cgit v1.2.3-54-g00ecf