diff options
author | Anthony G. Basile <blueness@gentoo.org> | 2016-09-24 08:53:12 -0400 |
---|---|---|
committer | Anthony G. Basile <blueness@gentoo.org> | 2016-09-24 08:53:28 -0400 |
commit | 7d343605cbb1fbcd3614f19db62fbd05bcfe21f6 (patch) | |
tree | 7b6437de706942d01df9770c84f99592afe640f9 /net-misc | |
parent | sci-mathematics/octave: Fix zlib underlinking (diff) | |
download | gentoo-7d343605cbb1fbcd3614f19db62fbd05bcfe21f6.tar.gz gentoo-7d343605cbb1fbcd3614f19db62fbd05bcfe21f6.tar.bz2 gentoo-7d343605cbb1fbcd3614f19db62fbd05bcfe21f6.zip |
net-misc/tor: further economize on openrc init script
Thanks floppym
Package-Manager: portage-2.2.28
Diffstat (limited to 'net-misc')
-rw-r--r-- | net-misc/tor/files/tor.initd-r8 | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/net-misc/tor/files/tor.initd-r8 b/net-misc/tor/files/tor.initd-r8 index e1f6c599ca46..ca319134aa4e 100644 --- a/net-misc/tor/files/tor.initd-r8 +++ b/net-misc/tor/files/tor.initd-r8 @@ -7,6 +7,8 @@ command=/usr/bin/tor pidfile=/var/run/tor/tor.pid command_args="--hush --runasdaemon 1 --pidfile \"${pidfile}\"" retry=${GRACEFUL_TIMEOUT:-60} +stopsig=INT +command_progress=yes extra_commands="checkconfig" extra_started_commands="reload" @@ -28,12 +30,6 @@ start_pre() { checkpath -d -m 0755 -o tor:tor /var/run/tor } -stop() { - ebegin "Stopping Tor (waiting up to ${retry} seconds)" - start-stop-daemon -K -s INT -R ${retry} -P -p ${pidfile} - eend $? -} - reload() { checkconfig || return 1 ebegin "Reloading Tor configuration" |