cjdns.service 697 B

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