cjdns.service 577 B

12345678910111213141516171819
  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. Type=simple
  7. ProtectHome=true
  8. ProtectSystem=true
  9. ExecStartPre=/bin/sh -ec "if ! test -e /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. ExecStart=/bin/sh -c "cjdroute --nobg < /etc/cjdroute.conf"
  15. Restart=always
  16. [Install]
  17. WantedBy=multi-user.target