PHPackages                             omatech/laravel-check-supervisor - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. omatech/laravel-check-supervisor

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

omatech/laravel-check-supervisor
================================

0.9.4(7y ago)354MITPHP

Since Aug 29Pushed 7y ago1 watchersCompare

[ Source](https://github.com/omatech/laravel-check-supervisor)[ Packagist](https://packagist.org/packages/omatech/laravel-check-supervisor)[ RSS](/packages/omatech-laravel-check-supervisor/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (1)Versions (7)Used By (0)

Laravel: Check Supervisor Status
================================

[](#laravel-check-supervisor-status)

Command to check that Supervisor is running and automatically restart it.

Installation
------------

[](#installation)

1.- Require the package in your composer.json.

```
composer require omatech/laravel-check-supervisor

```

2.- Register the service provider.

```
    // config/app.php

    'providers' => [
        ...
        Omatech\CheckSupervisor\CheckSupervisorServiceProvider::class,
        ...
    ];
```

3.- Optionally, you can publish the config file of the package if you want to use the automatic restart option

```
php artisan vendor:publish

```

And then, select:

```
Omatech\CheckSupervisor\App\Providers\PublishServiceProvider

```

Usage
-----

[](#usage)

1.- Use the command to know if supervisor is down. You can automate it in your crontab.

```
php artisan supervisor:check

```

2.- Create a listener to capture the package events. Here you can create your custom notification. Example:

```
php artisan make:listener SupervisorListener

```

```
