tor: add runit service. closes #610.

This commit is contained in:
Enno Boland 2014-10-31 01:29:21 +01:00
parent 7873b78631
commit 73b0311677
2 changed files with 5 additions and 1 deletions

2
srcpkgs/tor/files/tor/run Executable file
View file

@ -0,0 +1,2 @@
#!/bin/sh
exec tor --quiet -f /etc/tor/torrc

View file

@ -1,7 +1,7 @@
# Template file for 'tor'
pkgname=tor
version=0.2.5.10
revision=1
revision=2
build_options="systemd"
build_style=gnu-configure
makedepends="zlib-devel libressl-devel libevent-devel"
@ -26,4 +26,6 @@ post_install() {
# Install systemd service.
vinstall ${FILESDIR}/tor.service 644 usr/lib/systemd/system
fi
vsv tor
}