Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 444692 | Differences between
and this patch

Collapse All | Expand All

(-)a/doc/aiccu.service (+13 lines)
Line 0 Link Here
1
[Unit]
2
Description=Automatic IPv6 Connectivity Client Utility
3
After=time-sync.target network.target
4
ConditionPathExists=/etc/aiccu.conf
5
6
7
[Service]
8
Type=notify
9
ExecStart=/usr/sbin/aiccu start
10
ExecStop=/usr/sbin/aiccu stop
11
12
[Install]
13
WantedBy=multi-user.target
(-)a/unix-console/Makefile (-1 / +1 lines)
Lines 47-53 ifeq ($(shell uname | grep -c "Linux"),1) Link Here
47
CFLAGS  += -D_LINUX -D HAS_IFHEAD -D AICCU_TYPE="\"linux\""
47
CFLAGS  += -D_LINUX -D HAS_IFHEAD -D AICCU_TYPE="\"linux\""
48
SRCS	+= ../common/aiccu_linux.c
48
SRCS	+= ../common/aiccu_linux.c
49
OBJS	+= ../common/aiccu_linux.o
49
OBJS	+= ../common/aiccu_linux.o
50
LIBS	+= -lpthread -lresolv
50
LIBS	+= -lpthread -lresolv -lsystemd-daemon
51
endif
51
endif
52
52
53
# FreeBSD
53
# FreeBSD
(-)a/unix-console/main.c (+3 lines)
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 478-483 int main(int argc, char *argv[]) Link Here
478
			aiccu_exec("%s", g_aiccu->setupscript);
479
			aiccu_exec("%s", g_aiccu->setupscript);
479
		}
480
		}
480
481
482
		/* Tell systemd we are operational. */
483
		sd_notify(0, "READY=1");
481
484
482
		/* We need to stay running when doing Heartbeat or AYIYA */
485
		/* We need to stay running when doing Heartbeat or AYIYA */
483
		if (	strcasecmp(hTunnel->sType, "6in4-heartbeat") == 0 ||
486
		if (	strcasecmp(hTunnel->sType, "6in4-heartbeat") == 0 ||

Return to bug 444692