summaryrefslogtreecommitdiffstats
path: root/vendor/gipfl/systemd/src/systemd.php
blob: 7894a8fc8d6e5d4445e071e6fcde57fe86eb60ef (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<?php

namespace gipfl\SystemD;

class systemd
{
    /**
     * @param null $env
     * @return bool
     */
    public static function startedThisProcess($env = null)
    {
        if ($env === null) {
            $env = $_SERVER;
        }

        return isset($env['NOTIFY_SOCKET']);
    }
}