]> git.ipfire.org Git - thirdparty/systemd.git/commit
core/socket: stop hardcoding every service inactive state 33888/head
authorMike Yuan <me@yhndnzj.com>
Wed, 31 Jul 2024 18:02:05 +0000 (20:02 +0200)
committerMike Yuan <me@yhndnzj.com>
Wed, 31 Jul 2024 19:56:28 +0000 (21:56 +0200)
commit4c523d62d2641dfa64a8d73be24ca5a4eefaeb14
treee000684c719a64d5e4b5ca6ef475d916d46c1d1c
parent067c91fcb8991e83dffcf922f7f4faddf2cc49b1
core/socket: stop hardcoding every service inactive state

History (c068650fcfc69aebb35be1c71f35dbc25b22030a,
941a12dcba57f6673230a9c413738c51374d2998) has proven
that we're not good at keeping socket and service states
in sync. Instead, let's query the high-level unit_active_state()
first, and only hardcode the two special auto-restart
service states.

Additionally, allow returning to listening state on SERVICE_CLEANING.
src/core/socket.c