0

I am deploying Django application working on web server using gunicorn locally on WSL.

I need to enable needed systemd files. When I run command

systemctl enable gunicorn

I get error

"/etc/systemd/system/gunicorn.service:8: Missing '='. Failed to enable

unit, file gunicorn.service: Invalid argument.

gunicorn.service looking like that:

[Service]
User=root
Group=www-data
WorkingDirectory=<base_app_path>
Environment="PATH=<base_app_path>/env/bin"
EnvironmentFile=<base_app_path>/.env
ExecStart=<base_app_path>/env/bin/gunicorn \
          --workers 4 \
          --bind 0.0.0.0:8080 \
          meeting.wsgi:application
RestartSec=10
Restart=always

[Install]
WantedBy=multi-user.target

What can be the problem here?

user2976612
  • 145
  • 1
  • 8
  • From the tag: systemd questions should be for *programming questions* using systemd or its libraries. Questions about *configuring the daemon* (including writing unit files) are better directed to Unix & Linux: https://unix.stackexchange.com. – Rob Oct 22 '22 at 09:05

0 Answers0