diff options
author | Thomas Mangin <thomas.mangin@exa.net.uk> | 2020-05-23 07:33:47 +0100 |
---|---|---|
committer | Thomas Mangin <thomas.mangin@exa.net.uk> | 2020-06-25 10:57:58 +0100 |
commit | d9fbad6a6bbba292f31fe50e57af893062c7a584 (patch) | |
tree | 3c6b5d14d2062f1ef043d18db1932d22b5c7b0e7 /src/services/vyos-hostsd | |
parent | d41708ee247ce5efc5dc06f2d233e8d620fc6e4a (diff) | |
download | vyos-1x-d9fbad6a6bbba292f31fe50e57af893062c7a584.tar.gz vyos-1x-d9fbad6a6bbba292f31fe50e57af893062c7a584.zip |
systemd: T2494: use Type=notify with daemon
Notify systemd via the notify API when the python daemon are
ready to take connection
https://github.com/torfsen/python-systemd-tutorial
Diffstat (limited to 'src/services/vyos-hostsd')
-rwxr-xr-x | src/services/vyos-hostsd | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/services/vyos-hostsd b/src/services/vyos-hostsd index 0079f7e5c..53ac5a770 100755 --- a/src/services/vyos-hostsd +++ b/src/services/vyos-hostsd @@ -592,6 +592,7 @@ if __name__ == '__main__': socket.bind(SOCKET_PATH) os.umask(o_mask) + systemd.daemon.notify('READY=1') while True: # Wait for next request from client msg_json = socket.recv().decode() |