Skip to content

Commit b8e25a0

Browse files
committed
feat(Reload): Implement daemon-reload over dbus
1 parent c1c1695 commit b8e25a0

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

dbus/methods.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -255,3 +255,9 @@ type EnableUnitFileChange struct {
255255
Filename string // File name of the symlink
256256
Destination string // Destination of the symlink
257257
}
258+
259+
// Reload instructs systemd to scan for and reload unit files. This is
260+
// equivalent to a 'systemctl daemon-reload'.
261+
func (c *Conn) Reload() (string, error) {
262+
return c.runJob("Reload")
263+
}

0 commit comments

Comments
 (0)