summaryrefslogtreecommitdiffstats
path: root/sys/dev/pci/if_em.c
diff options
context:
space:
mode:
authorajacoutot <ajacoutot@openbsd.org>2011-03-09 09:10:44 +0000
committerajacoutot <ajacoutot@openbsd.org>2011-03-09 09:10:44 +0000
commit98e5d8eaeb75e8c9f72198ba81d29ffc96803782 (patch)
tree99a69896759e7a74faa01fd97b2b4eaea3194179 /sys/dev/pci/if_em.c
parentsync (diff)
downloadwireguard-openbsd-98e5d8eaeb75e8c9f72198ba81d29ffc96803782.tar.xz
wireguard-openbsd-98e5d8eaeb75e8c9f72198ba81d29ffc96803782.zip
Move rc_pre and rc_post out of the rc_start/rc_stop functions into the
rc_cmd start/stop actions. This way when rc.d(8) scripts override these functions, we don't loose rc_{pre,post}. Add a max 5 secs loop after rc_stop in the rc_cmd top action. This seems to be a good default for returning to command line only after the daemon has really stopped. This fixes "restart" for some daemons and allows to properly stop some others at shutdown time. Note that this is just a best-effort default, some daemons may need a lot more time to shutdown but this case is usually handled in the rc.d(8) script itself and we obviously do not want to hang the shutdown process. Call rc_cmd start/stop in restart and _not_ rc_start/rc_stop which can get overriden in a script. discussed with and inputs from sthen@ and schwarze@ ok sthen@ robert@
Diffstat (limited to 'sys/dev/pci/if_em.c')
0 files changed, 0 insertions, 0 deletions