pupax / systemd-wrapper
There is no license information available for the latest version (1.0.1) of this package.
PHP wrapper around systemd
1.0.1
2019-01-19 15:39 UTC
Requires
- php: ^7.0
- ext-mbstring: *
- symfony/process: ^3.0 || ^4.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^2.14
- phpunit/phpunit: ^6.5.8 || ^7.1
This package is auto-updated.
Last update: 2025-03-20 04:48:05 UTC
README
_____ _ _____ _ _____ _ _ _____
/ ____| | | | __ \ (_) | __ \| | | | __ \
| (___ _ _ ___| |_ ___ _ __ ___ | | | | _ _ __ | |__) | |__| | |__) |
\___ \| | | / __| __/ _ \ '_ ` _ \| | | | | | '_ \ | ___/| __ | ___/
____) | |_| \__ \ || __/ | | | | | |__| | | | | | | | | | | | | |
|_____/ \__, |___/\__\___|_| |_| |_|_____/ |_|_| |_| |_| |_| |_|_|
__/ |
|___/
SystemD PHP Wrapper
$wrapper = new \Pupax\SystemdWrapper(); $wrapper->start('nginx'); // Start nginx service $wrapper->stop('nginx'); // Stop nginx service $wrapper->restart('nginx'); // Restart nginx $wrapper->reload('nginx'); // Reload nginx $timers = $wrapper->listTimers(); // Get SystemD timers $sockets = $wrapper->listSockets(); // Get SystemD sockets $units = $wrapper->listUnits(); // Get SystemD units $systemInfo = $wrapper->show(); // Get SystemD infos $unitInfo = $wrapper->show('nginx'); // Get nginx info