worker.service.j2 349 B

123456789101112131415
  1. [Unit]
  2. Description=Mint lily worker service for {{ inventory_hostname }}
  3. After=network.target
  4. [Service]
  5. Type=simple
  6. ExecStart=/bin/bash lily.sh -d -c config.toml --worker {{ queue }}
  7. WorkingDirectory={{ app_deploy_target }}/mint/dashboard-v4/rpc/lily
  8. User=www-data
  9. Group=www-data
  10. Restart=always
  11. RestartSec=30s
  12. [Install]
  13. WantedBy=multi-user.target