Skip to content

Instantly share code, notes, and snippets.

@mtak
Last active November 20, 2015 22:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mtak/aa1d3f7dd93e68c6cc23 to your computer and use it in GitHub Desktop.
Save mtak/aa1d3f7dd93e68c6cc23 to your computer and use it in GitHub Desktop.
# Simple systemd startup script for the Ubiquiti UniFi controller software
#
# Copy this file to /lib/systemd/system/unifi.service
# Edit the path to the ace.jar
# Reload systemd with:
# $ systemctl daemon-reload
# Start the service at system boot:
# $ systemctl enable unifi
# Start the service with
# $ systemctl start unifi
# Stop the service with
# $ systemctl stop unifi
# View service status with
# $ systemctl status unifi
[Unit]
Description=Unifi controller
After=network.target
[Service]
Type=simple
ExecStart=/usr/bin/java -jar /opt/UniFi/lib/ace.jar start
ExecStop=/usr/bin/java -jar /opt/UniFi/lib/ace.jar stop
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment