summaryrefslogtreecommitdiff
path: root/chaperone.d
diff options
context:
space:
mode:
authorMicah Anderson <micah@riseup.net>2019-10-17 10:52:02 -0400
committerMicah Anderson <micah@riseup.net>2019-10-17 10:52:02 -0400
commit7e78f79b18530d34481da2cc942e275b74d110ad (patch)
treef54cea5f181225032133f634f7297e6674fcabad /chaperone.d
parenta11da39e1fb9c4d6d336d83aae6a58238d8a4a98 (diff)
[docker] Switch to using chaperone for init
This will allow us to setup a cronjob that will once per night download the geoipdb update.
Diffstat (limited to 'chaperone.d')
-rw-r--r--chaperone.d/download-geoipdb.conf5
-rw-r--r--chaperone.d/getmyip.conf5
2 files changed, 10 insertions, 0 deletions
diff --git a/chaperone.d/download-geoipdb.conf b/chaperone.d/download-geoipdb.conf
new file mode 100644
index 0000000..4c4df07
--- /dev/null
+++ b/chaperone.d/download-geoipdb.conf
@@ -0,0 +1,5 @@
+download-geoipdb-cron.service: {
+ type: cron,
+ interval: "59 23 * * *",
+ command: "/usr/bin/geoipupdate"
+}
diff --git a/chaperone.d/getmyip.conf b/chaperone.d/getmyip.conf
new file mode 100644
index 0000000..4b24a39
--- /dev/null
+++ b/chaperone.d/getmyip.conf
@@ -0,0 +1,5 @@
+getmyip.service: {
+ type: forking,
+ command: "/usr/local/bin/getmyip -notls",
+ exit_kills: true
+}