From b52ac00db5c009640e68134d4d0a076b889f706e Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Tue, 1 Sep 2015 12:10:41 +0100 Subject: [PATCH] Systemd tracker service --- src/freedombone | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/freedombone b/src/freedombone index e775b9f4..9746c099 100755 --- a/src/freedombone +++ b/src/freedombone @@ -1659,7 +1659,7 @@ function install_zeronet { echo 'User=tracker' >> /etc/systemd/system/tracker.service echo 'Group=tracker' >> /etc/systemd/system/tracker.service echo 'WorkingDirectory=/opt/tracker' >> /etc/systemd/system/tracker.service - echo "ExecStart=bttrack --port $TRACKER_PORT --dfile /opt/tracker/dstate --logfile /opt/tracker/tracker.log --nat_check 0 --scrape_allowed full --ipv6_enabled 0" >> /etc/systemd/system/tracker.service + echo "ExecStart=/usr/bin/bttrack --port $TRACKER_PORT --dfile /opt/tracker/dstate --logfile /opt/tracker/tracker.log --nat_check 0 --scrape_allowed full --ipv6_enabled 0" >> /etc/systemd/system/tracker.service echo '' >> /etc/systemd/system/tracker.service echo 'TimeoutSec=300' >> /etc/systemd/system/tracker.service echo '' >> /etc/systemd/system/tracker.service @@ -1678,9 +1678,10 @@ function install_zeronet { fi systemctl enable tracker.service - systemctl start tracker.service - systemctl enable zeronet.service + systemctl daemon-reload + + systemctl start tracker.service systemctl start zeronet.service echo 'mesh_zeronet' >> $COMPLETION_FILE