Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
L
lysator-tracker
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Lysator
lysator-tracker
Commits
d534e2cb
Commit
d534e2cb
authored
19 years ago
by
Per Cederqvist
Browse files
Options
Downloads
Patches
Plain Diff
Initial commit
parent
1f7e166e
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
README
+42
-0
42 additions, 0 deletions
README
bttrack.debian
+86
-0
86 additions, 0 deletions
bttrack.debian
with
128 additions
and
0 deletions
README
0 → 100644
+
42
−
0
View file @
d534e2cb
Background
==========
The files in this directory contains everything that is needed to set
up the tracker that can be found at
http://tracker.lysator.liu.se:6969/
This is the second reincarnation of the tracker. The first one was
lost shortly after it was set up when the web server was reinstalled
after a cracker wreaked havoc. This time, this package is created, in
the hope that recovery will be faster should a similar disaster happen
again in the future.
Some residual configuration may still be present in the Lysator system
from the first attempt, so this might not be everything you need to do
to set up a tracker from scratch.
Installation
============
Follow these steps:
1. Install bittorrent.
# apt-get install bittorrent
2. Ensure that sherman:/web/bittorrent is mounted on all of Lysators
CPU servers and workstations as /lysator/bittorrent.
3. Create an initscript. The supplied one works on Debian:
# cp bttrack.debian /etc/init.d/debian
4. Start the daemon:
# /etc/init.d/debian start
TODO:
- rotate the log
- link the initscript so that the tracker starts after a reboot
This diff is collapsed.
Click to expand it.
bttrack.debian
0 → 100755
+
86
−
0
View file @
d534e2cb
#! /bin/sh
#
# bttrack Start and stop bttrack for Lysator, on a Debian system.
#
# Author: Per Cederqvist <ceder@lysator.liu.se>
#
# This file is maintained in the lyskom-tracker Subversion project.
set
-e
PATH
=
/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
DESC
=
"BitTorrent tracker"
NAME
=
bttrack
DAEMON
=
/usr/bin/bttrack
PIDFILE
=
/var/run/bttrack.pid
SCRIPTNAME
=
/etc/init.d/bttrack
# Gracefully exit if the package has been removed.
test
-x
$DAEMON
||
exit
0
#
# Function that starts the daemon/service.
#
d_start
()
{
start-stop-daemon
--start
--quiet
\
--startas
$DAEMON
\
--name
$NAME
\
-c
bittorrent
\
--background
\
--pidfile
$PIDFILE
\
--make-pidfile
\
--
\
--port
6969
\
--dfile
/web/bittorrent/dfile
\
--bind
tracker.lysator.liu.se
\
--nat_check
0
\
--allowed_dir
/web/bittorrent/tracker
\
--parse_allowed_interval
1
\
--logfile
/web/bittorrent/bttrack.log
\
--allow_get
1
\
--keep_dead
1
}
#
# Function that stops the daemon/service.
#
d_stop
()
{
start-stop-daemon
--stop
--quiet
\
--name
$NAME
\
--user
bittorrent
\
--group
bittorrent
\
--pidfile
$PIDFILE
\
--retry
2
}
case
"
$1
"
in
start
)
echo
-n
"Starting
$DESC
:
$NAME
"
d_start
echo
"."
;;
stop
)
echo
-n
"Stopping
$DESC
:
$NAME
"
d_stop
echo
"."
;;
restart|force-reload
)
#
# If the "reload" option is implemented, move the "force-reload"
# option to the "reload" entry above. If not, "force-reload" is
# just the same as "restart".
#
echo
-n
"Restarting
$DESC
:
$NAME
"
d_stop
sleep
1
d_start
echo
"."
;;
*
)
echo
"Usage:
$SCRIPTNAME
{start|stop|restart|force-reload}"
>
&2
exit
1
;;
esac
exit
0
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