Skip to content

Commit

Permalink
systemd-notify in agentInit (#113)
Browse files Browse the repository at this point in the history
  • Loading branch information
hopkiw authored Jun 3, 2021
1 parent 1403d47 commit 0fa7703
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion google-guest-agent.service
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Wants=network-online.target
PartOf=network.service networking.service NetworkManager.service systemd-networkd.service

[Service]
Type=simple
Type=notify
ExecStart=/usr/bin/google_guest_agent
OOMScoreAdjust=-999
Restart=always
Expand Down
1 change: 1 addition & 0 deletions google_guest_agent/instance_setup.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ func agentInit(ctx context.Context) {
}
} else {
// Linux instance setup.
defer runCmd(exec.Command("systemd-notify", "--ready"))

if config.Section("Snapshots").Key("enabled").MustBool(false) {
logger.Infof("Snapshot listener enabled")
Expand Down

0 comments on commit 0fa7703

Please sign in to comment.