FreeBSD Bugzilla – Attachment 164867 Details for
Bug 205651
security/tor: pid file location
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Create pid folder with rc script
patch.file (text/plain), 1.67 KB, created by
Sir l33tname
on 2015-12-30 15:43:32 UTC
(
hide
)
Description:
Create pid folder with rc script
Filename:
MIME Type:
Creator:
Sir l33tname
Created:
2015-12-30 15:43:32 UTC
Size:
1.67 KB
patch
obsolete
>Index: tor/Makefile >=================================================================== >--- tor/Makefile (revision 404789) >+++ tor/Makefile (working copy) >@@ -43,6 +43,9 @@ > > CONFLICTS= tor-devel-[0-9]* > >+PLIST_LIST= PORTNAME=${PORTNAME} USER=${USERS} GROUP=${GROUPS} >+SUB_LIST= PORTNAME=${PORTNAME} USER=${USERS} GROUP=${GROUPS} >+ > .include <bsd.port.options.mk> > > .if !defined(USE_GCC) && empty(CC:T:M*gcc4*) && \ >Index: tor/files/pkg-message.in >=================================================================== >--- tor/files/pkg-message.in (revision 404789) >+++ tor/files/pkg-message.in (working copy) >@@ -6,10 +6,10 @@ > the net/torsocks port. After installing tor for the first time, or after > a major update of tor, you should: > >-rm -r /var/db/tor /var/run/tor >-mkdir -p /var/db/tor/data /var/run/tor >+rm -r /var/db/tor >+mkdir -p /var/db/tor/data > touch /var/log/tor >-chown -R _tor:_tor /var/db/tor /var/log/tor /var/run/tor >+chown -R _tor:_tor /var/db/tor /var/log/tor > chmod -R 700 /var/db/tor > > before starting the tor server. Tor users are strongly advised to prevent traffic >Index: tor/files/tor.in >=================================================================== >--- tor/files/tor.in (revision 404789) >+++ tor/files/tor.in (working copy) >@@ -37,5 +37,18 @@ > command_args="-f ${tor_conf} --PidFile ${tor_pidfile} --RunAsDaemon 1 --DataDirectory ${tor_datadir}" > extra_commands="reload" > >+start_precmd=%%PORTNAME%%_precmd >+%%PORTNAME%%_precmd() >+{ >+ if [ ! -e "${pidfile%/*}" ]; then >+ install -d -o %%USER%% -g %%GROUP%% "${pidfile%/*}"; >+ fi >+} >+ >+stop_precmd=%%PORTNAME%%_postcmd >+%%PORTNAME%%_postcmd() >+{ >+ rm -r "${pidfile%/*}" >+} > run_rc_command "$1" >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 205651
: 164867