Advertisement
Guest User

Untitled

a guest
Feb 21st, 2019
231
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. [Unit]
  2. Description=app
  3. After=network-online.target
  4.  
  5. [Service]
  6. Type=oneshot
  7. ExecStart=/bin/true
  8. RemainAfterExit=yes
  9.  
  10. [Install]
  11. WantedBy=multi-user.target
  12.  
  13. [Unit]
  14. Description=api-scopes-unit1
  15. PartOf=api-scopes.service
  16. After=api-scopes.service
  17.  
  18. [Service]
  19. Type=notify
  20.  
  21. Environment=PORT=3001
  22. ExecStart=/usr/bin/start-server.sh
  23. Restart=on-failure
  24.  
  25. [Install]
  26. WantedBy=api-scopes.service
  27.  
  28. [Unit]
  29. Description=api-scopes-unit2
  30. PartOf=api-scopes.service
  31. After=api-scopes.service
  32. After=api-scopes-unit1.service
  33.  
  34. [Service]
  35. Type=notify
  36.  
  37. Environment=PORT=3002
  38. ExecStart=/usr/bin/start-server.sh
  39. Restart=on-failure
  40.  
  41. [Install]
  42. WantedBy=api-scopes.service
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement