Advertisement
Morkeleb

Untitled

Oct 22nd, 2024 (edited)
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. [Unit]
  2. Description=Hompepage dashboard as a Systemd Service
  3. Documentation=https://github.com/gethomepage/homepage
  4. StartLimitIntervalSec=300
  5. StartLimitBurst=5
  6. After=network.target
  7.  
  8. [Service]
  9. Type=simple
  10. User=docker1
  11. Group=dockerdata
  12. # enable production environment once homepage is ready for it
  13. #Environment="NODE_ENV=production"
  14. # specify port with variable PORT=3000 or parameter -p 3000
  15. Environment="PORT=3000"
  16. # when developing and tracking issues, do logging with debug level
  17. # by setting LOG_LEVEL=debug
  18. #Environment="LOG_LEVEL=debug"
  19. EnvironmentFile=/home/docker1/services/homepage/config/environment.conf
  20. WorkingDirectory=/home/docker1/services/homepage
  21. ExecStart=/usr/bin/npm start --prefix /home/docker1/services/homepage
  22. Restart=on-failure
  23. RestartSec=1s
  24. StandardOutput=/home/docker1/services/homepage/config/logs/sdout.log
  25. StandardError=/home/docker1/services/homepage/config/logs/sderr.log
  26.  
  27. [Install]
  28. WantedBy=multi-user.target
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement