4-09 WSGI 서버 Gunicorn 사용하기 서비스 파일 생성 에러

아래와 같이 서비스파일을 생성 한 후 sudo systemctl start djangop.service,
sudo systemctl status djangop.service를 실행하면 아래의 <결과>같이
[Install] 부분에서 Unknown section 'install'. Ignoring. 에러가 뜹니다. 어떻게 해결해야하나요?

<서비스 파일>

[Unit]
Description=gunicorn daemon
After=network.target

[Service]
User=ubuntu
Group=ubuntu
WorkingDirectory=/home/ubuntu/projects/djangop
EnvironmentFile=/home/ubuntu/projects/djangop/.env
ExecStart=/home/ubuntu/.local/share/virtualenvs/djangop-BzXWgVwE/bin/gunicorn \
        --workers 2 \
        --bind unix:/tmp/gunicorn.sock \
        config.wsgi:application

[Install]
WantedBy=multi-user.target

<결과>

● djangop.service - gunicorn daemon
     Loaded: loaded (/etc/systemd/system/djangop.service; disabled; vendor preset: enabled)
     Active: active (running) since Wed 2021-07-28 20:00:46 JST; 22min ago
   Main PID: 5624 (gunicorn)
      Tasks: 3 (limit: 560)
     Memory: 68.2M
     CGroup: /system.slice/djangop.service
             ├─5624 /home/ubuntu/.local/share/virtualenvs/djangop-BzXWgVwE/bin/python /home/ubuntu/.local/share/virtualenvs/djangop-BzXWgVwE/bin/gunicorn --workers 2 --bind unix:/tmp/gunicorn.sock config.w>
             ├─5635 /home/ubuntu/.local/share/virtualenvs/djangop-BzXWgVwE/bin/python /home/ubuntu/.local/share/virtualenvs/djangop-BzXWgVwE/bin/gunicorn --workers 2 --bind unix:/tmp/gunicorn.sock config.w>
             └─5636 /home/ubuntu/.local/share/virtualenvs/djangop-BzXWgVwE/bin/python /home/ubuntu/.local/share/virtualenvs/djangop-BzXWgVwE/bin/gunicorn --workers 2 --bind unix:/tmp/gunicorn.sock config.w>

Jul 28 20:00:46 ip-172-26-8-126 systemd[1]: Started gunicorn daemon.
Jul 28 20:00:47 ip-172-26-8-126 gunicorn[5624]: [2021-07-28 20:00:47 +0900] [5624] [INFO] Starting gunicorn 20.1.0
Jul 28 20:00:47 ip-172-26-8-126 gunicorn[5624]: [2021-07-28 20:00:47 +0900] [5624] [INFO] Listening at: unix:/tmp/gunicorn.sock (5624)
Jul 28 20:00:47 ip-172-26-8-126 gunicorn[5624]: [2021-07-28 20:00:47 +0900] [5624] [INFO] Using worker: sync
Jul 28 20:00:47 ip-172-26-8-126 gunicorn[5635]: [2021-07-28 20:00:47 +0900] [5635] [INFO] Booting worker with pid: 5635
Jul 28 20:00:47 ip-172-26-8-126 gunicorn[5636]: [2021-07-28 20:00:47 +0900] [5636] [INFO] Booting worker with pid: 5636
Jul 28 20:01:24 ip-172-26-8-126 systemd[1]: /etc/systemd/system/djangop.service:14: Unknown section 'install'. Ignoring.

HJ 563

M 2021년 7월 28일 8:56 오후

서비스 파일 맨 위에 [Unit] 이 없는거 같아요. - 박응용님, 2021년 7월 28일 8:35 오후 추천 , 대댓글
@박응용님 아! 죄송합니다. 저 코드에서는 [Unit] 빠졌지만 실제로는 쓰여져 있습니다. 그런데도 불구하고 에러가 발생하는 상황입니다. - HJ님, 2021년 7월 28일 8:56 오후 추천 , 대댓글
@HJ님 파일상으로는 문제가 없어 보이네요, gunicorn 경로와 .env 파일 경로등이 정확한지 확인해 보세요. 책과 환경이 틀려서 어떤 부분이 잘못되었는지 판단이 어렵네요. - 박응용님, 2021년 7월 28일 9:30 오후 추천 , 대댓글
목록으로