HANDLE_RC_SCRIPTS fails to stop services that do not support 'status' #361

bdrewery opened this Issue Sep 18, 2012 · 0 comments


None yet

1 participant

The FreeBSD Project member

sysutils/ezjail does not define a status target, so it never gets stopped. One upgrades/reinstalls, pkg tries to always start the service, without stopping. While it could be argued that all rc scripts should have a status target, perhaps calling restart, or always stop and start would be safer.

Part of the output here is a echo "$*" that I added in /etc/rc.subr to debug what was being called.

# pkg install -f ezjail
Updating repository catalogue
Repository catalogue is up-to-date, no need to fetch fresh copy
pkg: sysutils/ezjail is already installed and at the latest version
The following packages will be installed:

        Reinstalling ezjail-3.2.2

0 B to be downloaded

Proceed with installing packages [y/N]: y
Checking integrity... done
Reinstalling ezjail-3.2.2ezjail quietstart
 ezjailonestart poudriere backups
Configuring jails:.
Starting jails: [poudriere already running (/var/run/jail_poudriere.id exists)] [backups already running (/var/run/jail_backups.id exists)].
cannot jail 'tank/poudriere': dataset already exists
Error: tank/poudriere could not be configuredcannot jail 'backup': dataset already exists
Error: backup could not be configured done
# service ezjail status
ezjail status
/usr/local/etc/rc.d/ezjail: unknown directive 'status'.
Usage: /usr/local/etc/rc.d/ezjail [fast|force|one|quiet](start|stop|restart|rcvar|startcrypto|stopcrypto)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment