From Corrupt Gibbon, 6 Months ago, written in Plain Text.
  1. [Unit]
  2. Description=Demo service
  3.  
  4. [Service]
  5. Type=simple
  6. ExecStart=/var/www/DemoApp/DemoApp/__init__.py
  7. KillSignal=SIGKILL
  8. Environment=statedir=/var/www/DemoApp/DemoApp
  9. TimeoutSec=30
  10. Restart=on-failure
  11. RestartSec=30
  12.  
  13. [Install]
  14. WantedBy=multi-user.target
  15.  
captcha