Guest User

Untitled

a guest
Oct 17th, 2017
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.14 KB | None | 0 0
  1. /var/www/html/wedding/.build/release/Wedding
  2.  
  3. # /etc/systemd/system/kinshit.service
  4. [Unit]
  5. Description=kinshit.com Wedding
  6. After=network.target
  7.  
  8. [Service]
  9. Type=simple
  10. User=www-data
  11. Restart=on-failure
  12. RestartSec=90
  13. WorkingDirectory=/var/www/html/wedding/
  14. Environment=LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/var/www/html/wedding/.build/release/
  15. ExecStart=/var/www/html/wedding/.build/release/Wedding
  16.  
  17. [Install]
  18. WantedBy=multi-user.target
  19.  
  20. systemctl enable kinshit.service
  21. systemctl daemon-reload
  22. service kinshit start
  23.  
  24. ==== AUTHENTICATING FOR org.freedesktop.systemd1.manage-units ===
  25. Authentication is required to start 'kinshit.service'.
  26. Authenticating as: root,1,,919033963047 (root)
  27. Password:
  28. ==== AUTHENTICATION COMPLETE ===
  29.  
  30. systemctl status kinshit.service
  31.  
  32. ● kinshit.service - kinshit.com Wedding
  33. Loaded: loaded (/etc/systemd/system/kinshit.service; enabled; vendor preset: enabled)
  34. Active: activating (auto-restart) (Result: exit-code) since Tue 2017-10-17 07:19:05 UTC; 1min 0s ago
  35. Process: 25976 ExecStart=/var/www/html/wedding/.build/release/Wedding (code=exited, status=203/EXEC)
  36. Main PID: 25976 (code=exited, status=203/EXEC)
Add Comment
Please, Sign In to add comment