diff options
author | Lennart Poettering <lennart@poettering.net> | 2024-01-08 15:13:07 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2024-01-09 10:46:25 +0100 |
commit | 0a6598bb38a3ba4d627c105ee29582dcd2c118e3 (patch) | |
tree | 2c06fb601ff7468ee0fb849c1efbf39d856376a5 /units | |
parent | testsuite-71: reset startlimit counter manually (diff) | |
download | systemd-0a6598bb38a3ba4d627c105ee29582dcd2c118e3.tar.xz systemd-0a6598bb38a3ba4d627c105ee29582dcd2c118e3.zip |
hostnamed: add simple Varlink API, too
Diffstat (limited to 'units')
-rw-r--r-- | units/meson.build | 5 | ||||
-rw-r--r-- | units/systemd-hostnamed.socket | 19 |
2 files changed, 24 insertions, 0 deletions
diff --git a/units/meson.build b/units/meson.build index 40cc3d10d3..efd2eac583 100644 --- a/units/meson.build +++ b/units/meson.build @@ -322,6 +322,11 @@ units = [ 'symlinks' : ['dbus-org.freedesktop.hostname1.service'], }, { + 'file' : 'systemd-hostnamed.socket', + 'conditions' : ['ENABLE_HOSTNAMED'], + 'symlinks' : ['sockets.target.wants/'], + }, + { 'file' : 'systemd-hwdb-update.service.in', 'conditions' : ['ENABLE_HWDB'], 'symlinks' : ['sysinit.target.wants/'], diff --git a/units/systemd-hostnamed.socket b/units/systemd-hostnamed.socket new file mode 100644 index 0000000000..8d0a06c5f2 --- /dev/null +++ b/units/systemd-hostnamed.socket @@ -0,0 +1,19 @@ +# SPDX-License-Identifier: LGPL-2.1-or-later +# +# This file is part of systemd. +# +# systemd is free software; you can redistribute it and/or modify it +# under the terms of the GNU Lesser General Public License as published by +# the Free Software Foundation; either version 2.1 of the License, or +# (at your option) any later version. + +[Unit] +Description=Hostname Service Varlink Socket +Documentation=man:systemd-hostnamed.service(8) +Documentation=man:hostname(5) +Documentation=man:machine-info(5) + +[Socket] +ListenStream=/run/systemd/io.systemd.Hostname +FileDescriptorName=varlink +SocketMode=0666 |