Last active
November 20, 2015 22:26
-
-
Save mtak/aa1d3f7dd93e68c6cc23 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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