stable

Clone or download

Read-only

tuleap-cfg can run systemctl commands

This replace the service management that was done in shell for install script by a tuleap-cfg dedicated command. Not only this allows to have code with tests but it's also easier to set execute a command that does nothing when systemd is not part of the target system. This is part of request #13394 tuleap-aio should run on centos7 Change-Id: I318667c48867ee8fad3a660aa5e24614393e2167

Modified Files

Name
M src/composer.json +1 −0 Go to diff View file
M src/composer.lock +50 −1 Go to diff View file
A src/tuleap-cfg/Command/ProcessFactory.php +34 −0 Go to diff View file
A src/tuleap-cfg/Command/SystemControlCommand.php +180 −0 Go to diff View file
A src/tuleap-cfg/Command/SystemControlInterface.php +41 −0 Go to diff View file
A src/tuleap-cfg/Command/SystemControlNoop.php +76 −0 Go to diff View file
A src/tuleap-cfg/Command/SystemControlSystemd.php +104 −0 Go to diff View file
A src/tuleap-cfg/Command/SystemControlTuleapCron.php +131 −0 Go to diff View file
M src/tuleap-cfg/tuleap-cfg.php +1 −0 Go to diff View file
M tests/phpunit/phpunit.xml +1 −0 Go to diff View file
A tests/phpunit/tuleap-cfg/Command/SystemControlCommandDockerCentos7Test.php +160 −0 Go to diff View file
A tests/phpunit/tuleap-cfg/Command/SystemControlCommandTest.php +229 −0 Go to diff View file
M tools/setup.el7.sh +8 −9 Go to diff View file
M tools/setup/el7/include/core.sh +6 −6 Go to diff View file
M tools/setup/el7/include/define.sh +1 −0 Go to diff View file
M tools/setup/el7/include/plugins.sh +7 −7 Go to diff View file
D tools/setup/el7/include/services.sh +0 −41 Go to diff View file