title: Can't run uwsgi .ini file with systemd emperor
body: <p>I am trying to set up uwsgi.service to run on systemd for Django 1.10 on Linode with Fedora 24.</p>
  
  <p>/etc/systemd/system/uwsgi.service</p>
  
  <pre><code>[Unit]
  Description=uWSGI Emperor
  After=syslog.target
  
  [Service]
  ExecStart=/home/ofey/djangoenv/bin/uwsgi --ini /etc/uwsgi/emperor.ini
  Restart=always
  KillSignal=SIGQUIT
  Type=notify
  StandardError=syslog
  NotifyAccess=all
  
  [Install]
  WantedBy=multi-user.target
  </code></pre>
  
  <p>This should then call,
  /etc/uwsgi/emporer.ini</p>
  
  <pre><code>[uwsgi]
  emperor = /etc/uwsgi/vassals
  uid = www-data
  gid = www-data
  limit-as = 1024
  logto = /tmp/uwsgi.log
  </code></pre>
  
  <p>I then use a symbolic link,</p>
  
  <pre><code>$ sudo ln -s /home/ofey/djangoForum/django.ini /etc/uwsgi/vassals/
  </code></pre>
  
  <p>to 
  /home/ofey/djangoForum/django.ini</p>
  
  <pre><code>[uwsgi]
  project = djangoForum
  base = /home/ofey
  
  chdir = %(base)/%(project)
  home = %(base)/djangoenv
  module = crudProject.wsgi:application
  
  master = true
  processes = 2
  
  socket = 127.0.0.1:3031
  chmod-socket = 664
  vacuum = true
  </code></pre>
  
  <p>I have restarted all with,</p>
  
  <pre><code>$ sudo systemctl daemon-reload
  $ sudo systemctl restart nginx.service
  $ sudo systemctl retart uwsgi.service
  </code></pre>
  
  <p>The last command gives, </p>
  
  <pre><code>Job for uwsgi.service failed because the control process exited with error code. See "systemctl status uwsgi.service" and "journalctl -xe" for details.
  
  $ sudo systemctl status uwsgi.service
  </code></pre>
  
  <p>gives,</p>
  
  <pre><code>● uwsgi.service - uWSGI Emperor
     Loaded: loaded (/etc/systemd/system/uwsgi.service; disabled; vendor preset: disabled)
     Active: inactive (dead)
  
  Dec 07 23:56:28 ofeyspi systemd[1]: Starting uWSGI Emperor...
  Dec 07 23:56:28 ofeyspi uwsgi[7834]: [uWSGI] getting INI configuration from /etc/uwsgi/emperor.ini
  Dec 07 23:56:28 ofeyspi systemd[1]: uwsgi.service: Main process exited, code=exited, status=1/FAILURE
  Dec 07 23:56:28 ofeyspi systemd[1]: Failed to start uWSGI Emperor.
  Dec 07 23:56:28 ofeyspi systemd[1]: uwsgi.service: Unit entered failed state.
  Dec 07 23:56:28 ofeyspi systemd[1]: uwsgi.service: Failed with result 'exit-code'.
  Dec 07 23:56:28 ofeyspi systemd[1]: uwsgi.service: Service hold-off time over, scheduling restart.
  Dec 07 23:56:28 ofeyspi systemd[1]: Stopped uWSGI Emperor.
  Dec 07 23:56:28 ofeyspi systemd[1]: uwsgi.service: Start request repeated too quickly.
  Dec 07 23:56:28 ofeyspi systemd[1]: Failed to start uWSGI Emperor.
  </code></pre>
  
  <p>I can not figure out why uwsgi.service will not run.</p>
  
  <p>uwsgi runs when I don't go through systemd and instead use,</p>
  
  <p>$ sudo --ini django.ini</p>