Bug 202322 - [bhyve,patch] add option to have bhyve write its PID into a file
Summary: [bhyve,patch] add option to have bhyve write its PID into a file
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: CURRENT
Hardware: Any Any
: --- Affects Some People
Assignee: freebsd-virtualization (Nobody)
URL:
Keywords: patch
Depends on:
Blocks:
 
Reported: 2015-08-14 13:04 UTC by Willem Jan Withagen
Modified: 2016-09-26 13:35 UTC (History)
2 users (show)

See Also:
wjw: mfc-stable10?


Attachments
write PID file for a bhyve process (3.64 KB, patch)
2015-08-14 13:04 UTC, Willem Jan Withagen
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Willem Jan Withagen 2015-08-14 13:04:46 UTC
Created attachment 159857 [details]
write PID file for a bhyve process

Running bhyve leaves processes running as VM/daemons for a long time.
Have their PID handy and ready is a nice bonus.

Include patch writes a pid file
Comment 1 Mark Linimon freebsd_committer freebsd_triage 2015-08-15 00:53:18 UTC
Fix assignment.
Comment 2 Steve Wills freebsd_committer freebsd_triage 2016-05-21 13:44:24 UTC
Any updates on this? Seems useful, any reason it can't be committed?
Comment 3 Peter Grehan freebsd_committer freebsd_triage 2016-05-21 23:22:09 UTC
The patch should probably use the pidfile functions in libutil unless there's a compelling reason otherwise, and use '-F' as the option since xhyve started using that (it also has an implementation of this).
Comment 4 Willem Jan Withagen 2016-09-26 13:35:22 UTC
Has been solved by Peter Grehan, in a different way.