Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
tor
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
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
debian
tor
Commits
3d44dd2f
Commit
3d44dd2f
authored
15 years ago
by
Peter Palfrader
Browse files
Options
Downloads
Patches
Plain Diff
Finally apply Peter Eisentraut's patch for tor's init script to support status as an argument
parent
06b59ec5
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
debian/changelog
+3
-1
3 additions, 1 deletion
debian/changelog
debian/tor.init
+19
-1
19 additions, 1 deletion
debian/tor.init
with
22 additions
and
2 deletions
debian/changelog
+
3
−
1
View file @
3d44dd2f
...
...
@@ -38,8 +38,10 @@ tor (0.2.2.9-alpha-1) experimental; urgency=low
* 0.2.2.4-alpha failed to ship test.h so we had included it in the
debian diff. The upstream bug has long since been fixed so we should
probably stop shipping our own copy of test.h
* Finally apply Peter Eisentraut's patch for tor's init script to support
status as an argument (closes: #526371).
-- Peter Palfrader <weasel@debian.org> Sat, 27 Feb 2010 16:3
3:22
+0100
-- Peter Palfrader <weasel@debian.org> Sat, 27 Feb 2010 16:3
6:48
+0100
tor (0.2.2.8-alpha-1) experimental; urgency=low
...
...
This diff is collapsed.
Click to expand it.
debian/tor.init
+
19
−
1
View file @
3d44dd2f
...
...
@@ -182,8 +182,26 @@ case "$1" in
sleep
1
$0
start
;;
status
)
if
test
!
-r
$(
dirname
$TORPID
)
;
then
echo
"cannot read tor PID file"
exit
4
fi
pid
=
`
cat
$TORPID
2>/dev/null
`
||
true
if
test
!
-f
$TORPID
-o
-z
"
$pid
"
;
then
echo
"tor is not running"
exit
3
fi
if
ps
"
$pid
"
>
/dev/null 2>&1
;
then
echo
"tor is running"
exit
0
else
echo
"tor is not running"
exit
1
fi
;;
*
)
echo
"Usage:
$0
{start|stop|restart|reload|force-reload}"
>
&2
echo
"Usage:
$0
{start|stop|restart|reload|force-reload
|status
}"
>
&2
exit
1
;;
esac
...
...
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