mirror of
https://github.com/ipfs/kubo.git
synced 2026-02-21 18:37:45 +08:00
17 lines
269 B
Go
17 lines
269 B
Go
//go:build linux
|
|
// +build linux
|
|
|
|
package main
|
|
|
|
import (
|
|
daemon "github.com/coreos/go-systemd/v22/daemon"
|
|
)
|
|
|
|
func notifyReady() {
|
|
_, _ = daemon.SdNotify(false, daemon.SdNotifyReady)
|
|
}
|
|
|
|
func notifyStopping() {
|
|
_, _ = daemon.SdNotify(false, daemon.SdNotifyStopping)
|
|
}
|