summaryrefslogtreecommitdiff
path: root/sd_daemon
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@lukeshu.com>2018-12-07 12:41:25 -0500
committerLuke Shumaker <lukeshu@lukeshu.com>2018-12-07 12:41:25 -0500
commit1e84510c24b467de60f3938a365b5085457c50a3 (patch)
treebd39f9efb37f22b054470b107fcedfc5333eedba /sd_daemon
parent832bbe8f8829c26b63039c157d65ab836c32f3c9 (diff)
sd_daemon.WatchdogEnabled: Update example in doc comment
The docs still used the used the pre-da323d620 (2017-01-18) notify function signature.
Diffstat (limited to 'sd_daemon')
-rw-r--r--sd_daemon/watchdog.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/sd_daemon/watchdog.go b/sd_daemon/watchdog.go
index be96970..05dc9f3 100644
--- a/sd_daemon/watchdog.go
+++ b/sd_daemon/watchdog.go
@@ -1,5 +1,5 @@
// Copyright 2016 CoreOS, Inc.
-// Copyright 2016 Luke Shumaker
+// Copyright 2016, 2018 Luke Shumaker
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@@ -24,7 +24,7 @@ import (
// WatchdogEnabled returns how often the process is expected to send a
// keep-alive notification to the service manager.
//
-// Notify(0, false, "WATCHDOG=1", nil) // send keep-alive notification
+// Notification{State: "WATCHDOG=1"}.Send(false) // send keep-alive notification
//
// If unsetEnv is true, then (regardless of whether the function call
// itself succeeds or not) it will unset the environmental variables