Add systemd service files.
authorgregor herrmann <gregoa@debian.org>
Thu, 14 Jul 2016 19:51:29 +0000 (21:51 +0200)
committergregor herrmann <gregoa@debian.org>
Thu, 14 Jul 2016 19:51:29 +0000 (21:51 +0200)
Thanks: Lizhou Sha for providing them, together with tons of explanations.
Closes: #830074
debian/iodined.service [new file with mode: 0644]
debian/iodined.tmpfile [new file with mode: 0644]

diff --git a/debian/iodined.service b/debian/iodined.service
new file mode 100644 (file)
index 0000000..9f7c92f
--- /dev/null
@@ -0,0 +1,13 @@
+[Unit]
+Description=A daemon for tunneling traffic over DNS queries
+After=local-fs.target network.target systemd-tmpfiles-setup.service
+
+[Service]
+EnvironmentFile=/etc/default/iodine
+ExecStartPre=/bin/sh -xc "test ${START_IODINED} = true"
+ExecStart=/usr/sbin/iodined -f -u iodine -t /var/run/iodine $IODINED_ARGS -P ${IODINED_PASSWORD}
+Restart=on-failure
+Type=simple
+
+[Install]
+WantedBy=multi-user.target
diff --git a/debian/iodined.tmpfile b/debian/iodined.tmpfile
new file mode 100644 (file)
index 0000000..6783674
--- /dev/null
@@ -0,0 +1 @@
+d /var/run/iodine - - -