bus-unit-util: ReloadSignal is a Service property

Follow-up for c133545430
This commit is contained in:
Mike Yuan
2025-12-16 10:37:09 +01:00
committed by Daan De Meyer
parent 6066106b3c
commit fd99348353
2 changed files with 8 additions and 7 deletions
+1 -1
View File
@@ -2564,7 +2564,6 @@ static const BusProperty kill_properties[] = {
{ "RestartKillSignal", bus_append_signal_from_string },
{ "FinalKillSignal", bus_append_signal_from_string },
{ "WatchdogSignal", bus_append_signal_from_string },
{ "ReloadSignal", bus_append_signal_from_string },
{}
};
@@ -2659,6 +2658,7 @@ static const BusProperty service_properties[] = {
{ "RestartForceExitStatus", bus_append_exit_status },
{ "SuccessExitStatus", bus_append_exit_status },
{ "OpenFile", bus_append_open_file },
{ "ReloadSignal", bus_append_signal_from_string },
{}
};
+7 -6
View File
@@ -593,11 +593,7 @@ TEST(kill_properties) {
"FinalKillSignal=SIGWINCH",
"FinalKillSignal=2",
"WatchdogSignal=RTMIN",
"WatchdogSignal=RTMIN+0",
"ReloadSignal=RTMAX",
"ReloadSignal=RTMAX-0",
"ReloadSignal=RTMAX-5",
"-ERANGE ReloadSignal=RTMAX-100"
"WatchdogSignal=RTMIN+0"
);
test_transient_settings_one(UNIT_SCOPE, lines);
@@ -782,7 +778,12 @@ TEST(service_properties) {
"OpenFile=/etc/myservice.conf:SOME$NAME:graceful",
"OpenFile=/etc/myservice.conf::read-only,graceful",
"OpenFile=/etc/myservice.conf::truncate,graceful",
"-EINVAL OpenFile=/etc/myservice.conf::append,truncate,read-only,graceful"
"-EINVAL OpenFile=/etc/myservice.conf::append,truncate,read-only,graceful",
"ReloadSignal=RTMAX",
"ReloadSignal=RTMAX-0",
"ReloadSignal=RTMAX-5",
"-ERANGE ReloadSignal=RTMAX-100"
);
test_transient_settings_one(UNIT_SERVICE, lines);