Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Tor
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Container Registry
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
The Tor Project
Core
Tor
Commits
0d88b808
Commit
0d88b808
authored
6 years ago
by
rl1987
Browse files
Options
Downloads
Patches
Plain Diff
Remove contrib/dist/tor.sh.in
parent
ef97e6c5
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
changes/ticket30075
+3
-0
3 additions, 0 deletions
changes/ticket30075
configure.ac
+0
-1
0 additions, 1 deletion
configure.ac
contrib/dist/tor.sh.in
+0
-123
0 additions, 123 deletions
contrib/dist/tor.sh.in
contrib/include.am
+0
-1
0 additions, 1 deletion
contrib/include.am
with
3 additions
and
125 deletions
changes/ticket30075
0 → 100644
+
3
−
0
View file @
0d88b808
o Removed features:
- Remove the obsolete script at contrib/dist/tor.sh.in. Resolves issue
30075.
This diff is collapsed.
Click to expand it.
configure.ac
+
0
−
1
View file @
0d88b808
...
...
@@ -2459,7 +2459,6 @@ AC_CONFIG_FILES([
config.rust
contrib/dist/suse/tor.sh
contrib/operator-tools/tor.logrotate
contrib/dist/tor.sh
contrib/dist/torctl
contrib/dist/tor.service
src/config/torrc.sample
...
...
This diff is collapsed.
Click to expand it.
contrib/dist/tor.sh.in
deleted
100644 → 0
+
0
−
123
View file @
ef97e6c5
#!/bin/sh
#
# tor The Onion Router
#
# Startup/shutdown script for tor. This is a wrapper around torctl;
# torctl does the actual work in a relatively system-independent, or at least
# distribution-independent, way, and this script deals with fitting the
# whole thing into the conventions of the particular system at hand.
# This particular script is written for Red Hat/Fedora Linux, and may
# also work on Mandrake, but not SuSE.
#
# These next couple of lines "declare" tor for the "chkconfig" program,
# originally from SGI, used on Red Hat/Fedora and probably elsewhere.
#
# chkconfig: 2345 90 10
# description: Onion Router - A low-latency anonymous proxy
#
PATH
=
/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
DAEMON
=
/usr/sbin/tor
NAME
=
tor
DESC
=
"tor daemon"
TORPIDDIR
=
/var/run/tor
TORPID
=
$TORPIDDIR
/tor.pid
WAITFORDAEMON
=
60
ARGS
=
""
# Library functions
if
[
-f
/etc/rc.d/init.d/functions
]
;
then
.
/etc/rc.d/init.d/functions
elif
[
-f
/etc/init.d/functions
]
;
then
.
/etc/init.d/functions
fi
TORCTL
=
@BINDIR@/torctl
# torctl will use these environment variables
TORUSER
=
@TORUSER@
export
TORUSER
if
[
-x
/bin/su
]
;
then
SUPROG
=
/bin/su
elif
[
-x
/sbin/su
]
;
then
SUPROG
=
/sbin/su
elif
[
-x
/usr/bin/su
]
;
then
SUPROG
=
/usr/bin/su
elif
[
-x
/usr/sbin/su
]
;
then
SUPROG
=
/usr/sbin/su
else
SUPROG
=
/bin/su
fi
# Raise ulimit based on number of file descriptors available (thanks, Debian)
if
[
-r
/proc/sys/fs/file-max
]
;
then
system_max
=
`
cat
/proc/sys/fs/file-max
`
if
[
"
$system_max
"
-gt
"80000"
]
;
then
MAX_FILEDESCRIPTORS
=
32768
elif
[
"
$system_max
"
-gt
"40000"
]
;
then
MAX_FILEDESCRIPTORS
=
16384
elif
[
"
$system_max
"
-gt
"10000"
]
;
then
MAX_FILEDESCRIPTORS
=
8192
else
MAX_FILEDESCRIPTORS
=
1024
cat
<<
EOF
Warning: Your system has very few filedescriptors available in total.
Maybe you should try raising that by adding 'fs.file-max=100000' to your
/etc/sysctl.conf file. Feel free to pick any number that you deem appropriate.
Then run 'sysctl -p'. See /proc/sys/fs/file-max for the current value, and
file-nr in the same directory for how many of those are used at the moment.
EOF
fi
else
MAX_FILEDESCRIPTORS
=
8192
fi
NICE
=
""
case
"
$1
"
in
start
)
if
[
-n
"
$MAX_FILEDESCRIPTORS
"
]
;
then
echo
-n
"Raising maximum number of filedescriptors (ulimit -n) to
$MAX_FILEDESCRIPTORS
"
if
ulimit
-n
"
$MAX_FILEDESCRIPTORS
"
;
then
echo
"."
else
echo
": FAILED."
fi
fi
action
$"Starting tor:"
$TORCTL
start
RETVAL
=
$?
;;
stop
)
action
$"Stopping tor:"
$TORCTL
stop
RETVAL
=
$?
;;
restart
)
action
$"Restarting tor:"
$TORCTL
restart
RETVAL
=
$?
;;
reload
)
action
$"Reloading tor:"
$TORCTL
reload
RETVAL
=
$?
;;
status
)
$TORCTL
status
RETVAL
=
$?
;;
*
)
echo
"Usage:
$0
(start|stop|restart|reload|status)"
RETVAL
=
1
esac
exit
$RETVAL
This diff is collapsed.
Click to expand it.
contrib/include.am
+
0
−
1
View file @
0d88b808
...
...
@@ -4,7 +4,6 @@ EXTRA_DIST+= \
contrib/client-tools/torify \
contrib/dist/rc.subr \
contrib/dist/suse/tor.sh.in \
contrib/dist/tor.sh \
contrib/dist/torctl \
contrib/dist/tor.service.in \
contrib/operator-tools/tor-exit-notice.html \
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment