pi@raspberrypi:~ $ sudo systemctl status danted
● danted.service - SOCKS (v4 and v5) proxy daemon (danted)
Loaded: loaded (/lib/systemd/system/danted.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Wed 2019-01-09 20:38:50 MSK; 21s ago
Docs: man:danted(8)
man:danted.conf(5)
Process: 416 ExecStart=/usr/sbin/danted -D (code=exited, status=1/FAILURE)
Process: 391 ExecStartPre=/bin/sh -c uid=`sed -n -e "s/[[:space:]]//g" -e "s/#.*//" -e "/^user\.privileged/{s/[^:]*://p;q;}" /etc/danted.conf`; if [ -n "$uid" ]; then touch /var/run/danted.pid;
янв 09 20:38:49 raspberrypi systemd[1]: Starting SOCKS (v4 and v5) proxy daemon (danted)...
янв 09 20:38:50 raspberrypi danted[416]: Jan 9 20:38:50 (1547055530.365121) danted[416]: warning: int_ifname2sockaddr(): interface "eth0" has no usable IP-addresses configured
янв 09 20:38:50 raspberrypi danted[416]: Jan 9 20:38:50 (1547055530.370992) danted[416]: error: /etc/danted.conf: problem on line 6 near token "eth0": could not resolve hostname "eth0": Temporary failure in name resolution.
янв 09 20:38:50 raspberrypi danted[416]: Jan 9 20:38:50 (1547055530.371124) danted[416]: alert: mother[1/1]: shutting down
янв 09 20:38:50 raspberrypi systemd[1]: danted.service: Control process exited, code=exited status=1
янв 09 20:38:50 raspberrypi systemd[1]: Failed to start SOCKS (v4 and v5) proxy daemon (danted).
янв 09 20:38:50 raspberrypi systemd[1]: danted.service: Unit entered failed state.
янв 09 20:38:50 raspberrypi systemd[1]: danted.service: Failed with result 'exit-code'.
/lib/systemd/system/danted.service
[Unit]
Description=SOCKS (v4 and v5) proxy daemon (danted)
Documentation=man:danted(8) man:danted.conf(5)
After=network.target
[Service]
Type=forking
PIDFile=/var/run/danted.pid
ExecStart=/usr/sbin/danted -D
ExecStartPre=/bin/sh -c ' \
uid=`sed -n -e "s/[[:space:]]//g" -e "s/#.*//" -e "/^user\\.privileged/{s/[^:]*://p;q;}" /etc/danted.conf`; \
if [ -n "$uid" ]; then \
touch /var/run/danted.pid; \
chown $uid /var/run/danted.pid; \
fi \
'
[Install]
WantedBy=multi-user.target
pi@raspberrypi:~ $ cd /usr/lib/systemd/system/
pi@raspberrypi:/usr/lib/systemd/system $ ls
vncserver-virtuald.service vncserver-x11-serviced.service
pi@raspberrypi:/usr/lib/systemd/system $ cd /etc/systemd/system/
pi@raspberrypi:/etc/systemd/system $ ls
autologin@.service dbus-org.freedesktop.Avahi.service getty.target.wants multi-user.target.wants rc-local.service.d sockets.target.wants timers.target.wants
bluetooth.target.wants dhcpcd5.service getty@tty1.service.d network-online.target.wants reboot.target.wants sysinit.target.wants
dbus-org.bluez.service display-manager.service halt.target.wants poweroff.target.wants remote-fs.target.wants syslog.service
/etc/network/interfaces
и после перезагрузки Danted запустился.