mirror of
https://github.com/ipfs/kubo.git
synced 2025-08-06 19:44:01 +08:00
16 lines
252 B
Go
16 lines
252 B
Go
// +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)
|
|
}
|