mirror of
https://github.com/ipfs/kubo.git
synced 2026-02-22 02:47:48 +08:00
16 lines
248 B
Go
16 lines
248 B
Go
// +build linux
|
|
|
|
package main
|
|
|
|
import (
|
|
daemon "github.com/coreos/go-systemd/daemon"
|
|
)
|
|
|
|
func notifyReady() {
|
|
_, _ = daemon.SdNotify(false, daemon.SdNotifyReady)
|
|
}
|
|
|
|
func notifyStopping() {
|
|
_, _ = daemon.SdNotify(false, daemon.SdNotifyStopping)
|
|
}
|