re-all-camps - start/stop/restart all campsVERSION
This command operates on each camp in numerical order, switching to the user who owns the camp using su, then invoking the re command with any arguments provided.
It must be run as root.
It makes the following assumptions about the system:
The name is a little cumbersome, but this isn't meant to be oft-used. Its primary purpose is to start all camps on a system after a reboot.
This would be more elegantly implemented as an option to re, then executing commands from Camp::Master as the appropriate user, but doing so would require an overhaul of the internals. Simply setting the effective user ID within re doesn't set up the environment properly as needed for starting the services as that user, so this uses su to spawn a subshell for each re call.AUTHOR
Jon Jensen <email@example.com> and other contributorsLICENSE AND COPYRIGHT
Copyright (C) 2009-2015 End Point Corporation, https://www.endpoint.com/
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see: http://www.gnu.org/licenses/
© 2006–2019 End Point Corporation