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 (+4 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 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)

Return to bug 444692