Closed yarwelp closed 9 years ago
There's a relevant proposal in the Debian bug tracker: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=686294.
diff --git a/systemd-service/run.bash b/systemd-service/run.bash
index d58611d..7cfb791 100755
--- a/systemd-service/run.bash
+++ b/systemd-service/run.bash
@@ -2,4 +2,5 @@
export HOME=/var/lib/timelog
source ~/venv/bin/activate
-python3 ~/venv/serve/manage.py runserver 0.0.0.0:8000
+python3 ~/venv/serve/manage.py runserver 0.0.0.0:8000 &
+avahi-publish -s "timelog" _http._tcp 8000 "path=/timelog/"
will, under normal conditions, only be announcing the service when it is running. However;
avahi-publish
, so if we are going to do it like this, issue #18 must be resolved first.
Currently, it will be advertised no matter whether or not it is actually running.