Download the PHP package sfnix/upstart without Composer
On this page you can find all versions of the php package sfnix/upstart. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download sfnix/upstart
More information about sfnix/upstart
Files in sfnix/upstart
Package upstart
Short Description Symfony bundle for painless Upstart configuration. It helps to make any script run forever in background on Linux.
License GPL-2.0-or-later
Homepage https://github.com/tarasbogach/UpstartBundle
Informations about the package upstart
UpstartBundle
For Symfony 2 and 3.
About
This is a Symfony bundle for painless Upstart configuration. It helps to make any symfony command (or any other script) run forever in background and restart on fails. Most common example of such script is queue consumer, another example is websocket server.
Installation
Require the bundle and its dependencies with composer:
Register the bundle:
Usage
Add the upstart
section to your configuration files:
Generate and install upstart files derived from your configuration. It also will try to enable bash completion for other commands of this bundle.
List jobs, and their statuses.
It can show statuses continuously with --watch
(-w
) option.
Refresh interval is 1 second by default, see --interval
(-i
) option.
Start jobs.
Stop jobs.
Stop and start jobs.
Show tails of logs of jobs.
It can show logs continuously with --watch
(-w
) option.
If you are redirecting script output in any way then you need to use log
, logDir
job config options.
Delete upstart files and bash completion scripts generated by this bundle.
You can use multiple job names or tags as arguments for any command, to filter jobs on which this command will operate.
You can use test command as script in your job configuration, for learning purposes.
It runs forever by default, but take a look at --exit
and --error
options.
Separate console application with bash completion support.
This bundle includes separate console application (Symfony 2) or (Symfony 3). Each command of this bundle is available through this application without "upstart:" namespace. also has bash completion support for command options, job names and tags. To start using bash completion, you must run , then logout and login again. Usage:
Full configuration reference
Read Upstart Cookbook for detailed description of all native stanzas.