[arch-commits] Commit in uwsgi/trunk (4 files)
Sven-Hendrik Haase
svenstaro at nymeria.archlinux.org
Thu Mar 20 03:03:03 UTC 2014
Date: Thursday, March 20, 2014 @ 04:03:03
Author: svenstaro
Revision: 107819
upgpkg: uwsgi 2.0.2-3
Add emperor mode systemd stuff
Added:
uwsgi/trunk/emperor.ini
uwsgi/trunk/emperor.uwsgi.service
uwsgi/trunk/emperor.uwsgi.socket
Modified:
uwsgi/trunk/PKGBUILD
-----------------------+
PKGBUILD | 15 ++++++++++++---
emperor.ini | 4 ++++
emperor.uwsgi.service | 14 ++++++++++++++
emperor.uwsgi.socket | 9 +++++++++
4 files changed, 39 insertions(+), 3 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2014-03-20 02:50:05 UTC (rev 107818)
+++ PKGBUILD 2014-03-20 03:03:03 UTC (rev 107819)
@@ -24,7 +24,7 @@
#uwsgi-plugin-erlang
#uwsgi-plugin-admin
pkgver=2.0.2
-pkgrel=2
+pkgrel=3
arch=(i686 x86_64)
url="http://projects.unbit.it/$pkgbase"
license=(GPL2)
@@ -39,7 +39,10 @@
uwsgi at .socket
uwsgi_fix_rpath.patch
uwsgi_ruby20_compatibility.patch
- uwsgi_trick_chroot.patch)
+ uwsgi_trick_chroot.patch
+ emperor.ini
+ emperor.uwsgi.service
+ emperor.uwsgi.socket)
md5sums=('297578b2e3ef2102faeadaa0fb8aac6b'
'a0749da07b545efcbb0276f52be22652'
@@ -48,7 +51,10 @@
'db70315bbc8cb886a278ba59d5fd8d57'
'1a4516d5cdcf5b95b036f4eae2d0c152'
'4d09535ce379c8acd76160f35d5d6b55'
- '0c09a52fdb88f08c36a8b380f451ce6d')
+ '0c09a52fdb88f08c36a8b380f451ce6d'
+ '5fa14ddea9a3dae17b5be28468d47b80'
+ '69ab06670656b4ea8f8a91ebe33c38e4'
+ '3ab4486e02f5c217566fb6c8d469c246')
prepare(){
cd $srcdir/$pkgbase-$pkgver
@@ -79,6 +85,9 @@
install -Dm755 uwsgi $pkgdir/usr/bin/uwsgi
install -Dm644 $srcdir/uwsgi at .service $pkgdir/usr/lib/systemd/system/uwsgi at .service
install -Dm644 $srcdir/uwsgi at .socket $pkgdir/usr/lib/systemd/system/uwsgi at .socket
+ install -Dm644 $srcdir/emperor.uwsgi.service $pkgdir/usr/lib/systemd/system/emperor.uwsgi.service
+ install -Dm644 $srcdir/emperor.uwsgi.socket $pkgdir/usr/lib/systemd/system/emperor.uwsgi.socket
+ install -Dm644 $srcdir/emperor.ini $pkgdir/etc/uwsgi/emperor.ini
install -Dm755 systemd_logger_plugin.so $pkgdir/usr/lib/uwsgi/systemd_logger_plugin.so
install -Dm644 $srcdir/tmpfilesd $pkgdir/usr/lib/tmpfiles.d/uwsgi.conf
}
Added: emperor.ini
===================================================================
--- emperor.ini (rev 0)
+++ emperor.ini 2014-03-20 03:03:03 UTC (rev 107819)
@@ -0,0 +1,4 @@
+[uwsgi]
+emperor = /etc/uwsgi/vassals
+uid = http
+gid = http
Added: emperor.uwsgi.service
===================================================================
--- emperor.uwsgi.service (rev 0)
+++ emperor.uwsgi.service 2014-03-20 03:03:03 UTC (rev 107819)
@@ -0,0 +1,14 @@
+[Unit]
+Description=uWSGI Emperor
+After=syslog.target
+
+[Service]
+ExecStart=/usr/bin/uwsgi --ini /etc/uwsgi/emperor.ini
+Restart=always
+KillSignal=SIGQUIT
+Type=notify
+StandardError=syslog
+NotifyAccess=main
+
+[Install]
+WantedBy=multi-user.target
Added: emperor.uwsgi.socket
===================================================================
--- emperor.uwsgi.socket (rev 0)
+++ emperor.uwsgi.socket 2014-03-20 03:03:03 UTC (rev 107819)
@@ -0,0 +1,9 @@
+[Unit]
+Description=Socket for uWSGI Emperor
+
+[Socket]
+# Change this to your uwsgi application port or unix socket location
+ListenStream=/run/uwsgi/emperor.sock
+
+[Install]
+WantedBy=sockets.target
More information about the arch-commits
mailing list