summary refs log tree commit diff
diff options
context:
space:
mode:
authorManuel Palenzuela <manuelpalenzuelamerino@gmail.com>2019-06-01 10:55:34 +0200
committerManuel Palenzuela <manuelpalenzuelamerino@gmail.com>2019-06-01 10:55:34 +0200
commit55a84cf7d21c1807ca653f8b2485b2959d26e3c2 (patch)
tree2b43cb05aef6b770ad1eab7de71cc8c7c0dff240
parentAdded service file (diff)
downloadgeolocate-55a84cf7d21c1807ca653f8b2485b2959d26e3c2.tar.gz
geolocate-55a84cf7d21c1807ca653f8b2485b2959d26e3c2.tar.bz2
geolocate-55a84cf7d21c1807ca653f8b2485b2959d26e3c2.zip
Added service file
-rw-r--r--location.service10
1 files changed, 10 insertions, 0 deletions
diff --git a/location.service b/location.service
new file mode 100644
index 0000000..24c811a
--- /dev/null
+++ b/location.service
@@ -0,0 +1,10 @@
+[Unit]
+Description=Writes to a file your approximate location (needs internet connection)
+Wants=network-online.target
+After=network.target network-online.target
+
+[Service]
+ExecStart=/usr/bin/geolocate >> ~/.location
+
+[Install]
+WantedBy=multi-user.target