1
0

cjdns.service 739 B

12345678910111213141516171819202122
  1. [Unit]
  2. Description=cjdns: routing engine designed for security, scalability, speed and ease of use
  3. Wants=network.target
  4. After=network-pre.target
  5. Before=network.target network.service
  6. [Service]
  7. ProtectHome=true
  8. ProtectSystem=true
  9. SyslogIdentifier=cjdroute
  10. ExecStartPre=/bin/sh -ec "if ! test -s /etc/cjdroute.conf; \
  11. then umask 077; \
  12. /usr/bin/cjdroute --genconf > /etc/cjdroute.conf; \
  13. echo 'WARNING: A new /etc/cjdroute.conf file has been generated.'; \
  14. fi"
  15. ExecStartPre=-/sbin/ip -6 route add blackhole fc00::/8 metric 500
  16. ExecStart=/bin/sh -c "exec /usr/bin/cjdroute --nobg < /etc/cjdroute.conf"
  17. Restart=always
  18. [Install]
  19. WantedBy=multi-user.target
  20. Also=cjdns-resume.service