From 73b03116770774b4159fde2cc984604c921e9b14 Mon Sep 17 00:00:00 2001 From: Enno Boland Date: Fri, 31 Oct 2014 01:29:21 +0100 Subject: [PATCH] tor: add runit service. closes #610. --- srcpkgs/tor/files/tor/run | 2 ++ srcpkgs/tor/template | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100755 srcpkgs/tor/files/tor/run diff --git a/srcpkgs/tor/files/tor/run b/srcpkgs/tor/files/tor/run new file mode 100755 index 00000000000..9a50432c012 --- /dev/null +++ b/srcpkgs/tor/files/tor/run @@ -0,0 +1,2 @@ +#!/bin/sh +exec tor --quiet -f /etc/tor/torrc diff --git a/srcpkgs/tor/template b/srcpkgs/tor/template index 93e6234e49b..d6636538f62 100644 --- a/srcpkgs/tor/template +++ b/srcpkgs/tor/template @@ -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 }