S
S
Sergey Bard2018-06-11 11:54:19
linux
Sergey Bard, 2018-06-11 11:54:19

How to start the daemon?

Hello everyone, I'm working with a queue, I had problems starting, I did this and
created the yiiqueue.service config in the /etc/systemd/system folder, with the following settings:

[Unit]
Description=YiiQueue
After=network.target 
After=mysql.service
Requires=mysql.service

[Service]
User=crmSystem
Group=crmSystem
ExecStart=/usr/bin/php /home/xxxxxxxx/yii queue/listen
Restart=on-failure
Type=simple

[Install]
WantedBy=multi-user.target

then I reboot, etc., according to the documentation,
there are no errors anywhere, it kind of runs this command, but it doesn’t work or something else, I don’t understand what’s wrong at all, maybe there are problems with the config?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sergey Bard, 2018-06-12
@serg_small_developer

solved the problem
i did this
but it had to be like this
those. in off. the documentation indicates the path to the yii file in the project, and I just pointed to the folder was

V
vreitech, 2018-06-11
@fzfx

> then I reboot, etc.,
do you do everything according to the documentation for the enable service?
what does he say systemctl status yiiqueue?
> runs this command but it doesn't work or something else
check the logs:journalctl -xe

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question