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
Package registry
Container registry
Model registry
Operate
Terraform modules
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
Hiro
Tor
Commits
cbb1b33f
Commit
cbb1b33f
authored
20 years ago
by
Peter Palfrader
Browse files
Options
Downloads
Patches
Plain Diff
Set ulimit for file descriptors to 4096 in our init script
svn:r3501
parent
0551e3a8
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
debian/changelog
+3
-1
3 additions, 1 deletion
debian/changelog
debian/tor.default
+7
-0
7 additions, 0 deletions
debian/tor.default
debian/tor.init
+2
-0
2 additions, 0 deletions
debian/tor.init
with
12 additions
and
1 deletion
debian/changelog
+
3
−
1
View file @
cbb1b33f
...
...
@@ -4,8 +4,10 @@ tor (0.1.0.0-alpha-cvs-1) UNRELEASED; urgency=low
* Forward port 06_add_compile_time_defaults.
* Add libevent-dev to build-depends.
* Update URL to tor in debian/control and debian/copyright.
* Set ulimit for file descriptors to 4096 in our init
script.
-- Peter Palfrader <weasel@debian.org>
Sun, 23 Jan 2005 16:26:13
+0100
-- Peter Palfrader <weasel@debian.org>
Wed, 2 Feb 2005 07:19:34
+0100
tor (0.0.9.3-1) unstable; urgency=low
...
...
This diff is collapsed.
Click to expand it.
debian/tor.default
+
7
−
0
View file @
cbb1b33f
...
...
@@ -7,6 +7,13 @@
#
RUN_DAEMON="yes"
#
# Servers sometimes may need more than the default 1024 file descriptors
# if they are very busy and have many clients connected to them.
# (ulimit -n)
#
MAX_FILEDESCRIPTORS=4096
#
# Uncomment this if you want to get coredumps
#
...
...
This diff is collapsed.
Click to expand it.
debian/tor.init
+
2
−
0
View file @
cbb1b33f
...
...
@@ -10,6 +10,7 @@ TORPID=/var/run/tor/tor.pid
DEFAULTSFILE
=
/etc/default/
$NAME
WAITFORDAEMON
=
10
ARGS
=
""
MAX_FILEDESCRIPTORS
=
4096
test
-x
$DAEMON
||
exit
0
...
...
@@ -49,6 +50,7 @@ case "$1" in
echo
"Not starting
$DESC
(Disabled in
$DEFAULTSFILE
)."
else
echo
"Starting
$DESC
:
$NAME
..."
ulimit
-n
$MAX_FILEDESCRIPTORS
start-stop-daemon
--start
--quiet
--oknodo
\
--chuid
debian-tor:debian-tor
\
--pidfile
$TORPID
\
...
...
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