can't resist
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.

17 lines
416 B

  1. [Unit]
  2. Description=Tomie
  3. [Service]
  4. Type=simple
  5. User=tomie
  6. Group=tomie
  7. Restart=on-failure
  8. EnvironmentFile=/opt/tomie/.env
  9. WorkingDirectory=/opt/tomie/_build/prod/rel/tomie/bin
  10. ExecStartPre=/opt/tomie/_build/prod/rel/tomie/bin/tomie eval "Tomie.Release.migrate"
  11. ExecStart=/opt/tomie/_build/prod/rel/tomie/bin/tomie start
  12. ExecStop=/opt/tomie/_build/prod/rel/tomie/bin/tomie stop
  13. [Install]
  14. WantedBy=multi-user.target