aur/monkey change pid file location to make it survive reboots

This commit is contained in:
moonman 2013-02-22 20:37:50 -07:00
parent ac51f656f9
commit 3e3b6979ab

View file

@ -4,12 +4,12 @@
#ALARM: moonman
# -added .service file for systemd
# -changed default port to 80 (required by .service)
# -changed pid file dir from /var/log to /var/run/monkey
# -changed pid file dir from /var/log/monkey to /var/run
# -added fastcgi support
pkgname=monkey
pkgver=1.1.1
pkgrel=3
pkgrel=4
pkgdesc="A very small and fast open source web server for Linux"
arch=('arm')
url="http://www.monkey-project.com/"
@ -33,7 +33,7 @@ build() {
make DESTDIR=$pkgdir install
#change default pid file location from /var/log to /var/run/monkey
sed -i -e "s/\/var\/log\/monkey\/monkey.pid/\/var\/run\/monkey\/monkey.pid/" $startdir/pkg/etc/monkey/monkey.conf
sed -i -e "s/\/var\/log\/monkey\/monkey.pid/\/var\/run\/monkey.pid/" $startdir/pkg/etc/monkey/monkey.conf
#change default port to 80
sed -i -e "s/Port\ 2001/Port\ 80/" $startdir/pkg/etc/monkey/monkey.conf