Improvements to the original service(8) command to allow multiple services management in a single invocation.
Supported actions include:
configtest, disable, enable, enabled, extracommands, forceconfigtest, forceextracommands, forcegracefulstop,
forcepoll. forcercvar, forcereload, forcerestart, forcestart, forcestatus, forcestop, forceupgrade,
gracefulstop, oneconfigtest, oneextracommands, onegracefulstop, onepoll. onercvar, onereload, onerestart,
onestart, onestatus, onestop, oneupgrade, poll. rcvar, reload, restart, start, status, stop, upgrade.
services <service> <action>services <action> <service1> [service2 ...]-dEnable debugging of rc.d scripts-j <jail>Perform actions within the named jail-E n=valSet variablentovalbefore executing the rc.d script-eShow services that are enabled-RStop and start enabled local startup services-lList all scripts in/etc/rc.dand$local_startup-rShow the results of boot-time rcorder-qQuiet mode-vVerbose mode-hShow usage help
- Full compatibility with the original
service(8)syntax. - New syntax to manage multiple services in a single command.
- Support for enabling/disabling services directly via
sysrc. - Jail-aware execution (
-joption). - Verbose and quiet modes for flexible output.
- Safe: does not replace the original
service(8)shell script, installed asservices.
- FreeBSD 7.3 or newer.
sysrc(8)available in base system.- Root privileges for installation and service management.
services nginx enable
services nginx startservices start nginx php_fpm postfix
services restart sshd unboundservices enable nginx php_fpm postfix
services disable sshd unboundClone the repository and run the installer:
git clone https://github.com/geobarrod/FBSD-Services.git
cd FBSD-Services
sudo make installTo remove services:
cd FBSD-Services
sudo make uninstall- Initial release of services.
- Features:
- Multiple service management in one command.
- Support for
enableanddisableactions viasysrc. - Maintains compatibility with classic
service(8)syntax. - Jail-aware execution.
- Verbose and quiet modes.