mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-21 10:37:22 -08:00
net-misc/tor: further economize on openrc init script
Thanks floppym Package-Manager: portage-2.2.28
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user