File tree 1 file changed +6
-4
lines changed
1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -57,6 +57,12 @@ public function run()
57
57
$ this ->eventDispatcher ->dispatch (Events::START );
58
58
ErrorHandlerUtil::setLogger ($ this ->logger );
59
59
60
+ $ masterOptions = $ this ->container ->getParameter ('master ' );
61
+
62
+ $ currentProcess = $ this ->container ->get ('process ' );
63
+ $ currentProcess ->setUser ($ masterOptions ['user ' ]);
64
+ $ currentProcess ->setGroup ($ masterOptions ['group ' ]);
65
+
60
66
$ this ->running = true ;
61
67
62
68
$ this ->installSignalHandlers ();
@@ -105,10 +111,6 @@ public function sanityCheck()
105
111
private function daemonize ()
106
112
{
107
113
$ currentProcess = $ this ->container ->get ('process ' );
108
- $ masterOptions = $ this ->container ->getParameter ('master ' );
109
-
110
- $ currentProcess ->setUser ($ masterOptions ['user ' ]);
111
- $ currentProcess ->setGroup ($ masterOptions ['group ' ]);
112
114
113
115
// Double fork magic, to prevent daemon to acquire a tty
114
116
if ($ pid = $ currentProcess ->fork ()) {
You can’t perform that action at this time.
0 commit comments