From Big Macaw, 4 Weeks ago, written in Bash.
  1. [Unit]
  2. Description=PowerChute Network Shutdown
  3. After=network.target
  4.  
  5. [Service]
  6. Type=forking
  7. ExecStart=/usr/bin/PowerChute start
  8. ExecStop=/usr/bin/PowerChute stop
  9.  
  10. [Install]
  11. WantedBy=default.target
captcha