Библиотека ansible плейбуков на разные случаи
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

systemd-service.template.j2 350B

123456789101112131415
  1. [Unit]
  2. Description={{service_description}}
  3. Requires=network.target
  4. After=syslog.target network.target
  5. TimeoutStopSpec=60
  6. [Service]
  7. Type=simple
  8. ExecStart={{interpretator}} {{installation_path}}/app.py
  9. ExecReload=/bin/kill -HUP $MAINPID
  10. WorkingDirectory={{installation_path}}
  11. User=vlad
  12. Restart=always
  13. RestartSec=30
  14. [Install]
  15. WantedBy=multi-user.target