luxstats.service 648 B

12345678910111213141516171819202122
  1. # Optional systemd USER unit to start LuxStats with your desktop session.
  2. # Install:
  3. # mkdir -p ~/.config/systemd/user
  4. # cp luxstats.service ~/.config/systemd/user/
  5. # # edit ExecStart below to your checkout path, then:
  6. # systemctl --user enable --now luxstats.service
  7. [Unit]
  8. Description=LuxStats status-LED configurator
  9. After=graphical-session.target
  10. PartOf=graphical-session.target
  11. [Service]
  12. Type=forking
  13. # EDIT THIS PATH to where you keep the repo:
  14. ExecStart=%h/luxstats/luxstats.sh start
  15. ExecStop=%h/luxstats/luxstats.sh stop
  16. PIDFile=%S/luxstats/luxstats.pid
  17. Restart=on-failure
  18. RestartSec=5
  19. [Install]
  20. WantedBy=graphical-session.target