]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Put tor.service in the right place, and autoconfify it
authorNick Mathewson <nickm@torproject.org>
Tue, 29 Apr 2014 16:15:40 +0000 (12:15 -0400)
committerNick Mathewson <nickm@torproject.org>
Tue, 29 Apr 2014 17:17:30 +0000 (13:17 -0400)
This closes 8368.

changes/ticket8368 [new file with mode: 0644]
configure.ac
contrib/dist/tor.service.in [moved from contrib/tor.service with 90% similarity]
contrib/include.am

diff --git a/changes/ticket8368 b/changes/ticket8368
new file mode 100644 (file)
index 0000000..206a766
--- /dev/null
@@ -0,0 +1,5 @@
+  o Distribution:
+    - Include a tor.service file in contrib.dist for use with
+      systemd. Some distributions will be able to use this file unmodified;
+      others will need to tweak it, or write their own. Patch from
+      Jamie Nguyen; resolves ticket 8368.
index ca7c9c0fcc7d37be63c3721702d3e96e21f731e0..c0c8187578c47ab40168726d2ebb66e2bd2fe497 100644 (file)
@@ -1561,6 +1561,7 @@ AC_CONFIG_FILES([
         contrib/operator-tools/tor.logrotate
         contrib/dist/tor.sh
         contrib/dist/torctl
+        contrib/dist/tor.service
         src/config/torrc.sample
 ])
 
similarity index 90%
rename from contrib/tor.service
rename to contrib/dist/tor.service.in
index 2780aaa513d74551d89ebceae0da008cfcc49999..5d7670281b5a88b1c9f4876ea9c701323639dc4c 100644 (file)
@@ -4,7 +4,7 @@ After = syslog.target network.target nss-lookup.target
 
 [Service]
 Type = simple
-ExecStart = /usr/bin/tor -f /etc/tor/torrc
+ExecStart = @BINDIR@/tor -f @CONFDIR@/torrc
 ExecReload = /bin/kill -HUP ${MAINPID}
 KillSignal = SIGINT
 TimeoutSec = 30
index 0120798614a56fc482068abdf48bd993fed6775d..ede980678e8328801d2ad37a83b3321f38b3fc5d 100644 (file)
@@ -5,6 +5,7 @@ EXTRA_DIST+= \
        contrib/dist/suse/tor.sh.in                     \
        contrib/dist/tor.sh                             \
        contrib/dist/torctl                             \
+       contrib/dist/tor.service.in                     \
        contrib/operator-tools/linux-tor-prio.sh        \
        contrib/operator-tools/tor-exit-notice.html     \
        contrib/or-tools/exitlist                       \