Package: iodine Version: 0.7.0-4 Severity: wishlist Dear Maintainer,
Please find attached a systemd service file for iodined. This should serve as a drop-in replacement for the existing sysvinit script. A couple things to note: - The original init script depends on $remote_fs, $named, and $syslog. It seems that it is sufficient to use Wants=network.service in the systemd service file, but you might want to verify that this is the case. - The sysvinit script allows iodined to fork into a daemon, but under systemd it is probably easier to have iodined not fork. Therefore, I added the -f option to the command line and used Type=simple instead of Type=forking. Best, Lizhou -- System Information: Debian Release: stretch/sid APT prefers xenial-updates APT policy: (500, 'xenial-updates'), (500, 'xenial-security'), (500, 'xenial'), (100, 'xenial-backports') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 4.4.0-28-generic (SMP w/8 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system)
# Author: Lizhou Sha <s...@mit.edu> [Unit] Description=A daemon for tunneling traffic over DNS queries After=network.target [Service] EnvironmentFile=/etc/default/iodine ExecStartPre=/bin/sh -xc "test ${START_IODINED} = true" ExecStart=/usr/sbin/iodined -f -u iodine $IODINED_ARGS -P ${IODINED_PASSWORD} Restart=on-failure Type=simple [Install] WantedBy=multi-user.target