Skip to content

Commit c224373

Browse files
committed
fix(dbus.Reload): Correct call to Manager.Reload
1 parent 4d0bd18 commit c224373

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dbus/methods.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -349,6 +349,6 @@ type DisableUnitFileChange struct {
349349

350350
// Reload instructs systemd to scan for and reload unit files. This is
351351
// equivalent to a 'systemctl daemon-reload'.
352-
func (c *Conn) Reload() (string, error) {
353-
return c.runJob("org.freedesktop.systemd1.Manager.Reload")
352+
func (c *Conn) Reload() error {
353+
return c.sysobj.Call("org.freedesktop.systemd1.Manager.Reload", 0).Store()
354354
}

0 commit comments

Comments
 (0)