@@ -24,7 +24,7 @@ import (
2424 "github.com/godbus/dbus/v5"
2525)
2626
27- // Who specifies which process to send a signal to via the [KillUnitWithTarget].
27+ // Who specifies which process to send a signal to via the [Conn. KillUnitWithTarget].
2828type Who string
2929
3030const (
@@ -196,15 +196,15 @@ func (c *Conn) StartTransientUnitContext(ctx context.Context, name string, mode
196196 return c .startJob (ctx , ch , "org.freedesktop.systemd1.Manager.StartTransientUnit" , name , mode , properties , make ([]PropertyCollection , 0 ))
197197}
198198
199- // Deprecated: use [KillUnitWithTarget] instead.
199+ // Deprecated: use [Conn. KillUnitWithTarget] instead.
200200func (c * Conn ) KillUnit (name string , signal int32 ) {
201201 c .KillUnitContext (context .Background (), name , signal )
202202}
203203
204204// KillUnitContext takes the unit name and a UNIX signal number to send.
205205// All of the unit's processes are killed.
206206//
207- // Deprecated: use [KillUnitWithTarget] instead, with target argument set to [All].
207+ // Deprecated: use [Conn. KillUnitWithTarget] instead, with target argument set to [All].
208208func (c * Conn ) KillUnitContext (ctx context.Context , name string , signal int32 ) {
209209 _ = c .KillUnitWithTarget (ctx , name , All , signal )
210210}
@@ -859,7 +859,7 @@ func (c *Conn) listJobsInternal(ctx context.Context) ([]JobStatus, error) {
859859}
860860
861861// FreezeUnit freezes the cgroup associated with the unit.
862- // Note that FreezeUnit and [ThawUnit] are only supported on systems running with cgroup v2.
862+ // Note that FreezeUnit and [Conn. ThawUnit] are only supported on systems running with cgroup v2.
863863func (c * Conn ) FreezeUnit (ctx context.Context , unit string ) error {
864864 return c .sysobj .CallWithContext (ctx , "org.freedesktop.systemd1.Manager.FreezeUnit" , 0 , unit ).Store ()
865865}
0 commit comments