Blame cjdns.service

1afaf1
[Unit]
1afaf1
Description=cjdns: routing engine designed for security, scalability, speed and ease of use
1afaf1
Wants=network.target
1afaf1
After=network.target cjdns-loadmodules.service
1afaf1
Requires=cjdns-loadmodules.service
1afaf1
1afaf1
[Service]
1afaf1
ProtectHome=true
1afaf1
ProtectSystem=true
1afaf1
SyslogIdentifier=cjdroute
1afaf1
CapabilityBoundingSet=CAP_NET_ADMIN CAP_NET_RAW CAP_SETUID CAP_SETGID CAP_SYS_CHROOT CAP_AUDIT_CONTROL
1afaf1
ExecStartPre=/bin/sh -ec "if ! test -s /etc/cjdroute.conf; \
1afaf1
                then umask 077; \
1afaf1
                /usr/sbin/cjdroute --genconf | cat > /etc/cjdroute.conf; \
1afaf1
                echo 'WARNING: A new /etc/cjdroute.conf file has been generated.'; \
1afaf1
            fi"
1afaf1
ExecStart=/bin/sh -c "exec /usr/sbin/cjdroute --nobg < /etc/cjdroute.conf"
1afaf1
ExecStartPost=/bin/sh /usr/libexec/cjdns/cjdns-up
1afaf1
Restart=always
1afaf1
1afaf1
[Install]
1afaf1
WantedBy=multi-user.target
1afaf1
Also=cjdns-resume.service