diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2019-08-25 11:20:56 +0200 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2019-08-28 16:09:54 +0200 |
commit | c968d76a382f905b419cacd23a6b20aa31aca580 (patch) | |
tree | ef22cef88423bf54f05b338125f23eeb1183a329 /src/basic/unit-def.c | |
parent | core: introduce unit_fork_and_watch_rm_rf() (diff) | |
download | systemd-c968d76a382f905b419cacd23a6b20aa31aca580.tar.xz systemd-c968d76a382f905b419cacd23a6b20aa31aca580.zip |
core/socket: support "systemctl clean" for socket units
Diffstat (limited to 'src/basic/unit-def.c')
-rw-r--r-- | src/basic/unit-def.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/basic/unit-def.c b/src/basic/unit-def.c index cc7e953c10..e0928f9c02 100644 --- a/src/basic/unit-def.c +++ b/src/basic/unit-def.c @@ -204,7 +204,8 @@ static const char* const socket_state_table[_SOCKET_STATE_MAX] = { [SOCKET_STOP_POST] = "stop-post", [SOCKET_FINAL_SIGTERM] = "final-sigterm", [SOCKET_FINAL_SIGKILL] = "final-sigkill", - [SOCKET_FAILED] = "failed" + [SOCKET_FAILED] = "failed", + [SOCKET_CLEANING] = "cleaning", }; DEFINE_STRING_TABLE_LOOKUP(socket_state, SocketState); |