Lines 12-17
Link Here
|
12 |
|
12 |
|
13 |
#include "../common/aiccu.h" |
13 |
#include "../common/aiccu.h" |
14 |
#include "../common/tun.h" |
14 |
#include "../common/tun.h" |
|
|
15 |
#include <systemd/sd-daemon.h> |
15 |
|
16 |
|
16 |
#ifndef _WIN32 |
17 |
#ifndef _WIN32 |
17 |
/* Enable/Disable heartbeating */ |
18 |
/* Enable/Disable heartbeating */ |
Lines 471-476
int main(int argc, char *argv[])
Link Here
|
471 |
*/ |
472 |
*/ |
472 |
if (aiccu_setup(hTunnel, true)) |
473 |
if (aiccu_setup(hTunnel, true)) |
473 |
{ |
474 |
{ |
|
|
475 |
/* Tell systemd we are operational. */ |
476 |
sd_notify(0, "READY=1"); |
477 |
|
474 |
/* We need to stay running when doing Heartbeat or AYIYA */ |
478 |
/* We need to stay running when doing Heartbeat or AYIYA */ |
475 |
if ( strcasecmp(hTunnel->sType, "6in4-heartbeat") == 0 || |
479 |
if ( strcasecmp(hTunnel->sType, "6in4-heartbeat") == 0 || |
476 |
strcasecmp(hTunnel->sType, "ayiya") == 0) |
480 |
strcasecmp(hTunnel->sType, "ayiya") == 0) |