Bug 216469

Summary: sysutils/ezjail ezjail's rcorder is not reversed for restart's stop step
Product: Ports & Packages Reporter: Derek Schrock <dereks>
Component: Individual Port(s)Assignee: freebsd-ports-bugs mailing list <ports-bugs>
Status: New ---    
Severity: Affects Only Me CC: erdgeist, w.schwarzenfeld
Priority: --- Flags: bugzilla: maintainer-feedback? (erdgeist)
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
do_cmd stop/start when restarting instead of do_cmd restart
none
do_cmd stop/start when restarting instead of do_cmd restart none

Description Derek Schrock 2017-01-25 23:16:13 UTC
Created attachment 179319 [details]
do_cmd stop/start when restarting instead of do_cmd restart

When restarting ezjail via the restart command the rcorder of the stop is not reversed (ezjail:50).  Reverse rcorder is only executed for a stop action 'service ezjail stop' or ezjail-admin stop not the stop step of restart.

This patch will make make the restart_cmd stop and start using 'do_cmd stop; do_cmd start;'

Also, remove unnecessary restart checks in do_cmd since we never execute 'do_cmd restart'
Comment 1 Derek Schrock 2017-01-26 13:32:29 UTC
Created attachment 179329 [details]
do_cmd stop/start when restarting instead of do_cmd restart

Opps.. diff'ed the wrong order.
Comment 2 Walter Schwarzenfeld freebsd_triage 2018-01-14 04:56:33 UTC
Maintainer feedback?