Skip to content

Commit 4fbc506

Browse files
committed
Merge pull request #40 from bcwaldon/fix-reload
fix(dbus.Reload): Correct call to Manager.Reload
2 parents 4d0bd18 + c224373 commit 4fbc506

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)