diff options
author | Lennart Poettering <lennart@poettering.net> | 2011-04-20 05:02:23 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2011-04-20 05:02:23 +0200 |
commit | b0a3f2bc097999f63d3205bb175ad7a6695363a0 (patch) | |
tree | b1529fc80afd6e2ee75098e3e7aab1b569447784 /src/load-fragment.c | |
parent | 944d4c91e68508d997409008ab7acd8d6e162965 (diff) |
socket: support ListeSpecial= sockets
Diffstat (limited to 'src/load-fragment.c')
-rw-r--r-- | src/load-fragment.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/load-fragment.c b/src/load-fragment.c index c48d764a31..6ec5090197 100644 --- a/src/load-fragment.c +++ b/src/load-fragment.c @@ -220,6 +220,17 @@ static int config_parse_listen( } path_kill_slashes(p->path); + + } else if (streq(lvalue, "ListenSpecial")) { + p->type = SOCKET_SPECIAL; + + if (!(p->path = strdup(rvalue))) { + free(p); + return -ENOMEM; + } + + path_kill_slashes(p->path); + } else if (streq(lvalue, "ListenNetlink")) { p->type = SOCKET_SOCKET; @@ -1908,6 +1919,7 @@ static int load_from_path(Unit *u, const char *path) { { "ListenSequentialPacket", config_parse_listen, 0, &u->socket, "Socket" }, { "ListenFIFO", config_parse_listen, 0, &u->socket, "Socket" }, { "ListenNetlink", config_parse_listen, 0, &u->socket, "Socket" }, + { "ListenSpecial", config_parse_listen, 0, &u->socket, "Socket" }, { "BindIPv6Only", config_parse_socket_bind, 0, &u->socket, "Socket" }, { "Backlog", config_parse_unsigned, 0, &u->socket.backlog, "Socket" }, { "BindToDevice", config_parse_bindtodevice, 0, &u->socket, "Socket" }, |