From 7e78f79b18530d34481da2cc942e275b74d110ad Mon Sep 17 00:00:00 2001 From: Micah Anderson Date: Thu, 17 Oct 2019 10:52:02 -0400 Subject: [docker] Switch to using chaperone for init This will allow us to setup a cronjob that will once per night download the geoipdb update. --- chaperone.d/download-geoipdb.conf | 5 +++++ chaperone.d/getmyip.conf | 5 +++++ 2 files changed, 10 insertions(+) create mode 100644 chaperone.d/download-geoipdb.conf create mode 100644 chaperone.d/getmyip.conf (limited to 'chaperone.d') 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 +} -- cgit v1.2.3