J
J
Jekson2019-01-30 17:39:47
linux
Jekson, 2019-01-30 17:39:47

Why doesn't uWSGI restart?

I can't figure out what's wrong. Added a new static file to the server, I'm trying to
sudo systemctl restart uwsgi
make

Failed to restart uwsgi.service: Unit uwsgi.service not found.

Checking status sudo systemctl status
Service active
(linuxbox) [email protected]:~/box/linuxbox$ sudo systemctl start linuxbox
(linuxbox) [email protected]:~/box/linuxbox$ sudo systemctl enable linuxbox
Created symlink from /etc/systemd/system/multi-user.target.wants/linuxbox.service to /etc/systemd/system/linuxbox.service.
(linuxbox) [email protected]:~/box/linuxbox$ sudo systemctl status linuxbox
● linuxbox.service - uWSGI instance to serve linuxbox
   Loaded: loaded (/etc/systemd/system/linuxbox.service; enabled; vendor preset:
   Active: active (running) since Wed 2019-01-30 12:41:15 UTC; 1h 54min ago
 Main PID: 29182 (uwsgi)
   CGroup: /system.slice/linuxbox.service
           ├─29182 /home/jekson/Env/linuxbox/bin/uwsgi --ini linuxbox.ini
           ├─29187 /home/jekson/Env/linuxbox/bin/uwsgi --ini linuxbox.ini
           ├─29188 /home/jekson/Env/linuxbox/bin/uwsgi --ini linuxbox.ini
           ├─29189 /home/jekson/Env/linuxbox/bin/uwsgi --ini linuxbox.ini
           ├─29190 /home/jekson/Env/linuxbox/bin/uwsgi --ini linuxbox.ini
           └─29191 /home/jekson/Env/linuxbox/bin/uwsgi --ini linuxbox.ini

The site is working, but the new code is not applied.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Soslan Khloev, 2019-01-30
@Lepilov

Your system actually swears at the absence of the uwsgi.service unit, and below you can see that this is linuxbox.service.
Maybe sudo systemctl restart linuxbox.service?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question