sfnix / upstart_monitor
Symfony based web UI for sfnix/upstart bundle. (Painless Upstart configuration. It helps to make any script run forever in background on Linux.)
Installs: 48
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:symfony-bundle
Requires
Suggests
- ext-mcrypt: *
- ext-openssl: *
This package is not auto-updated.
Last update: 2023-02-04 16:40:48 UTC
README
Symfony based web UI for sfnix/upstart bundle. It helps to make any symfony command (or any other script) run forever in background and restart on fails. ##Installation Require the bundle and its dependencies with composer:
$ composer require sfnix/upstart_monitor
Check for openssl (recommended) or mcrypt PHP extension.
$ php -i | grep -e "openssl" -e "mcrypt"
Register the bundle:
// app/AppKernel.php public function registerBundles() { //... $bundles = [ //... new SfNix\UpstartBundle\UpstartBundle(), new SfNix\UpstartMonitorBundle\UpstartMonitorBundle(), ]; //... }
# app/config/routing.yml upstart_monitor: resource: "@UpstartMonitorBundle/Resources/config/routing.yml" prefix: /upstart
# app/config/security.yml security: #... access_control: upstart: { path: ^/upstart, roles: ROLE_ADMIN }
# app/config/config.yml imports: # ... - { resource: upstart.yml }
# app/config/upstart.yml upstart_monitor: #WebSocket server to start. server: host: 0.0.0.0 port: 13000 #WebSocket client. client: schema: 'ws' port: 13000 path: / upstart: #... job: monitor: command: upstart:monitor verbose: 1 native: {respawn: true, setuid: root, manual: true} #...
See sfnix/upstart for upstart configuration.
$ ./app/console upstart:install $ ./app/console upstart:start monitor
You can go to http://{your.domain}/upstart ##Warning UpstartMonitorBundle upstart:monitor command must run with superuser rights to be able to start/stop jobs, so please, be careful! UpstartMonitorBundle comes with ABSOLUTELY NO WARRANTY, use it at your own risk.