Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 330542 Details for
Bug 444692
net-misc/aiccu: add systemd support
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Systemd support for net-misc/aiccu-2007.01.15-r1
aiccu-2007.01.15-r1-systemd.patch (text/plain), 1.45 KB, created by
Łukasz Stelmach
on 2012-11-25 14:00:21 UTC
(
hide
)
Description:
Systemd support for net-misc/aiccu-2007.01.15-r1
Filename:
MIME Type:
Creator:
Łukasz Stelmach
Created:
2012-11-25 14:00:21 UTC
Size:
1.45 KB
patch
obsolete
>diff --git a/doc/aiccu.service b/doc/aiccu.service >new file mode 100644 >index 0000000..17cf756 >--- /dev/null >+++ b/doc/aiccu.service >@@ -0,0 +1,13 @@ >+[Unit] >+Description=Automatic IPv6 Connectivity Client Utility >+After=time-sync.target network.target >+ConditionPathExists=/etc/aiccu.conf >+ >+ >+[Service] >+Type=notify >+ExecStart=/usr/sbin/aiccu start >+ExecStop=/usr/sbin/aiccu stop >+ >+[Install] >+WantedBy=multi-user.target >diff --git a/unix-console/Makefile b/unix-console/Makefile >index ae9fe3b..91786e1 100755 >--- a/unix-console/Makefile >+++ b/unix-console/Makefile >@@ -47,7 +47,7 @@ ifeq ($(shell uname | grep -c "Linux"),1) > CFLAGS += -D_LINUX -D HAS_IFHEAD -D AICCU_TYPE="\"linux\"" > SRCS += ../common/aiccu_linux.c > OBJS += ../common/aiccu_linux.o >-LIBS += -lpthread -lresolv >+LIBS += -lpthread -lresolv -lsystemd-daemon > endif > > # FreeBSD >diff --git a/unix-console/main.c b/unix-console/main.c >index 8a4d9a9..0d59e89 100755 >--- a/unix-console/main.c >+++ b/unix-console/main.c >@@ -12,6 +12,7 @@ > > #include "../common/aiccu.h" > #include "../common/tun.h" >+#include <systemd/sd-daemon.h> > > #ifndef _WIN32 > /* Enable/Disable heartbeating */ >@@ -471,6 +472,9 @@ int main(int argc, char *argv[]) > */ > if (aiccu_setup(hTunnel, true)) > { >+ /* Tell systemd we are operational. */ >+ sd_notify(0, "READY=1"); >+ > /* We need to stay running when doing Heartbeat or AYIYA */ > if ( strcasecmp(hTunnel->sType, "6in4-heartbeat") == 0 || > strcasecmp(hTunnel->sType, "ayiya") == 0)
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 444692
: 330542 |
330544
|
330546