- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for ReloadLogindConf (0.29 sec)
-
pkg/kubelet/nodeshutdown/systemd/inhibit_linux.go
if err != nil { return fmt.Errorf("unable to close systemd inhibitor lock: %w", err) } return nil } // ReloadLogindConf uses dbus to send a SIGHUP to the systemd-logind service causing logind to reload it's configuration. func (bus *DBusCon) ReloadLogindConf() error { systemdService := "org.freedesktop.systemd1" systemdObject := "/org/freedesktop/systemd1"
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Aug 04 06:56:50 UTC 2023 - 6.2K bytes - Viewed (0) -
pkg/kubelet/nodeshutdown/systemd/inhibit_linux_test.go
assert.NoError(t, err) } func TestReloadLogindConf(t *testing.T) { bus := DBusCon{ SystemBus: &fakeSystemDBus{ fakeDBusObject: &fakeDBusObject{}, }, } assert.NoError(t, bus.ReloadLogindConf()) } func TestMonitorShutdown(t *testing.T) { var tests = []struct { desc string shutdownActive bool }{ { desc: "shutdown is active", shutdownActive: true,
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Mar 29 19:50:06 UTC 2023 - 4.4K bytes - Viewed (0) -
pkg/kubelet/nodeshutdown/nodeshutdown_manager_linux.go
return systemd.NewDBusCon() } type dbusInhibiter interface { CurrentInhibitDelay() (time.Duration, error) InhibitShutdown() (systemd.InhibitLock, error) ReleaseInhibitLock(lock systemd.InhibitLock) error ReloadLogindConf() error MonitorShutdown() (<-chan bool, error) OverrideInhibitDelay(inhibitDelayMax time.Duration) error } // managerImpl has functions that can be used to interact with the Node Shutdown Manager.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Nov 09 08:02:40 UTC 2022 - 15.5K bytes - Viewed (0) -
pkg/kubelet/nodeshutdown/nodeshutdown_manager_linux_test.go
f.didInhibitShutdown = true return systemd.InhibitLock(0), nil } func (f *fakeDbus) ReleaseInhibitLock(lock systemd.InhibitLock) error { return nil } func (f *fakeDbus) ReloadLogindConf() error { return nil } func (f *fakeDbus) MonitorShutdown() (<-chan bool, error) { return f.shutdownChan, nil } func (f *fakeDbus) OverrideInhibitDelay(inhibitDelayMax time.Duration) error {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 29.8K bytes - Viewed (0)