Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
trackrdrd
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
uplex-varnish
trackrdrd
Commits
94187602
Commit
94187602
authored
Feb 20, 2013
by
Geoff Simmons
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[trackrdrd] - init script waits longer for process to stop before starting
- monitor stats emitted one last time before abort
parent
0497b6c0
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
2 deletions
+10
-2
trackrdrd
trackrdrd/etc/trackrdrd
+1
-1
handler.c
trackrdrd/src/handler.c
+2
-1
monitor.c
trackrdrd/src/monitor.c
+6
-0
trackrdrd.h
trackrdrd/src/trackrdrd.h
+1
-0
No files found.
trackrdrd/etc/trackrdrd
View file @
94187602
...
@@ -29,7 +29,7 @@ CURL=/usr/bin/curl
...
@@ -29,7 +29,7 @@ CURL=/usr/bin/curl
VARNISH_PORT
=
81
VARNISH_PORT
=
81
URL
=
http://localhost:
${
VARNISH_PORT
}
/ts-rcv?testSession
=
true
URL
=
http://localhost:
${
VARNISH_PORT
}
/ts-rcv?testSession
=
true
START_RETRIES
=
5
START_RETRIES
=
10
if
[
!
-e
${
TRACKRDRD_BIN
}
]
;
then
if
[
!
-e
${
TRACKRDRD_BIN
}
]
;
then
echo
"
${
TRACKRDRD_BIN
}
not installed"
echo
"
${
TRACKRDRD_BIN
}
not installed"
...
...
trackrdrd/src/handler.c
View file @
94187602
...
@@ -91,10 +91,11 @@ stacktrace(void)
...
@@ -91,10 +91,11 @@ stacktrace(void)
void
void
HNDL_Abort
(
int
sig
)
HNDL_Abort
(
int
sig
)
{
{
AZ
(
sigaction
(
SIGABRT
,
&
default_action
,
NULL
));
LOG_Log
(
LOG_ALERT
,
"Received signal %d (%s), stacktrace follows"
,
sig
,
LOG_Log
(
LOG_ALERT
,
"Received signal %d (%s), stacktrace follows"
,
sig
,
strsignal
(
sig
));
strsignal
(
sig
));
stacktrace
();
stacktrace
();
AZ
(
sigaction
(
SIGABRT
,
&
default_action
,
NULL
)
);
MON_Output
(
);
LOG_Log0
(
LOG_ALERT
,
"Aborting"
);
LOG_Log0
(
LOG_ALERT
,
"Aborting"
);
abort
();
abort
();
}
}
trackrdrd/src/monitor.c
View file @
94187602
...
@@ -134,6 +134,12 @@ void
...
@@ -134,6 +134,12 @@ void
pthread_exit
((
void
*
)
NULL
);
pthread_exit
((
void
*
)
NULL
);
}
}
void
MON_Output
(
void
)
{
log_output
();
}
void
void
MON_StatusShutdown
(
pthread_t
monitor
)
MON_StatusShutdown
(
pthread_t
monitor
)
{
{
...
...
trackrdrd/src/trackrdrd.h
View file @
94187602
...
@@ -357,6 +357,7 @@ typedef enum {
...
@@ -357,6 +357,7 @@ typedef enum {
}
stats_update_t
;
}
stats_update_t
;
void
*
MON_StatusThread
(
void
*
arg
);
void
*
MON_StatusThread
(
void
*
arg
);
void
MON_Output
(
void
);
void
MON_StatusShutdown
(
pthread_t
monitor
);
void
MON_StatusShutdown
(
pthread_t
monitor
);
void
MON_StatsInit
(
void
);
void
MON_StatsInit
(
void
);
void
MON_StatsUpdate
(
stats_update_t
update
);
void
MON_StatsUpdate
(
stats_update_t
update
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment