blob: 9291f7a466426cc4780a3c4a4fc11577125ac692 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
diff -ru -x '*~' openvpn-2.3.1-orig/src/openvpn/init.c openvpn-2.3.1/src/openvpn/init.c
--- openvpn-2.3.1-orig/src/openvpn/init.c 2013-03-20 09:28:14.000000000 +0100
+++ openvpn-2.3.1/src/openvpn/init.c 2014-04-22 13:02:21.351026640 +0200
@@ -48,6 +48,8 @@
#include "occ-inline.h"
+#include <systemd/sd-daemon.h>
+
static struct context *static_context; /* GLOBAL */
/*
@@ -1241,6 +1243,9 @@
{
static const char message[] = "Initialization Sequence Completed";
+ /* Tell systemd we're ready. */
+ sd_notify(0, "READY=1");
+
/* If we delayed UID/GID downgrade or chroot, do it now */
do_uid_gid_chroot (c, true);
|