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
3b150500
Commit
3b150500
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
9d31fa15
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
14 additions
and
6 deletions
+14
-6
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
worker.c
trackrdrd/src/worker.c
+4
-4
No files found.
trackrdrd/etc/trackrdrd
View file @
3b150500
...
...
@@ -29,7 +29,7 @@ CURL=/usr/bin/curl
VARNISH_PORT
=
81
URL
=
http://localhost:
${
VARNISH_PORT
}
/ts-rcv?testSession
=
true
START_RETRIES
=
5
START_RETRIES
=
10
if
[
!
-e
${
TRACKRDRD_BIN
}
]
;
then
echo
"
${
TRACKRDRD_BIN
}
not installed"
...
...
trackrdrd/src/handler.c
View file @
3b150500
...
...
@@ -91,10 +91,11 @@ stacktrace(void)
void
HNDL_Abort
(
int
sig
)
{
AZ
(
sigaction
(
SIGABRT
,
&
default_action
,
NULL
));
LOG_Log
(
LOG_ALERT
,
"Received signal %d (%s), stacktrace follows"
,
sig
,
strsignal
(
sig
));
stacktrace
();
AZ
(
sigaction
(
SIGABRT
,
&
default_action
,
NULL
)
);
MON_Output
(
);
LOG_Log0
(
LOG_ALERT
,
"Aborting"
);
abort
();
}
trackrdrd/src/monitor.c
View file @
3b150500
...
...
@@ -134,6 +134,12 @@ void
pthread_exit
((
void
*
)
NULL
);
}
void
MON_Output
(
void
)
{
log_output
();
}
void
MON_StatusShutdown
(
pthread_t
monitor
)
{
...
...
trackrdrd/src/trackrdrd.h
View file @
3b150500
...
...
@@ -357,6 +357,7 @@ typedef enum {
}
stats_update_t
;
void
*
MON_StatusThread
(
void
*
arg
);
void
MON_Output
(
void
);
void
MON_StatusShutdown
(
pthread_t
monitor
);
void
MON_StatsInit
(
void
);
void
MON_StatsUpdate
(
stats_update_t
update
);
...
...
trackrdrd/src/worker.c
View file @
3b150500
...
...
@@ -54,12 +54,12 @@ typedef enum {
}
wrk_state_e
;
static
const
char
*
statename
[
WRK_STATE_E_LIMIT
]
=
{
[
WRK_NOTSTARTED
]
=
"not started"
,
[
WRK_NOTSTARTED
]
=
"not started"
,
[
WRK_INITIALIZING
]
=
"initializing"
,
[
WRK_RUNNING
]
=
"running"
,
[
WRK_WAITING
]
=
"waiting"
,
[
WRK_RUNNING
]
=
"running"
,
[
WRK_WAITING
]
=
"waiting"
,
[
WRK_SHUTTINGDOWN
]
=
"shutting down"
,
[
WRK_EXITED
]
=
"exited"
[
WRK_EXITED
]
=
"exited"
};
struct
worker_data_s
{
...
...
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