Documentation ¶
Overview ¶
Package systemd contains a minimal wrapper around systemd-notify to enable applications to signal readiness and status to systemd.
This package will only have effect on Linux systems running Tailscale in a systemd unit with the Type=notify flag set. On other operating systems (or when running in a Linux distro without being run from inside systemd) this package will become a no-op.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Ready ¶
func Ready()
Ready signals readiness to systemd. This will unblock service dependents from starting.
func Status ¶
func Status(format string, args ...interface{})
Status sends a single line status update to systemd so that information shows up in systemctl output. For example:
$ systemctl status tailscale ● tailscale.service - Tailscale client daemon Loaded: loaded (/nix/store/qc312qcy907wz80fqrgbbm8a9djafmlg-unit-tailscale.service/tailscale.service; enabled; vendor preset: enabled) Active: active (running) since Tue 2020-11-24 17:54:07 EST; 13h ago Main PID: 26741 (.tailscaled-wra) Status: "Connected; user@host.domain.tld; 100.101.102.103" IP: 0B in, 0B out Tasks: 22 (limit: 4915) Memory: 30.9M CPU: 2min 38.469s CGroup: /system.slice/tailscale.service └─26741 /nix/store/sv6cj4mw2jajm9xkbwj07k29dj30lh0n-tailscale-date.20200727/bin/tailscaled --port 41641
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.