logo

overlay

My own overlay for experimentations, use with caution, no support is provided git clone https://hacktivis.me/git/overlay.git

cjdns-fix_systemd_units.patch (1386B)


  1. From 9303439700406cc0dc3b9817c672147848687e82 Mon Sep 17 00:00:00 2001
  2. From: Alex Acevedo <alex-acevedo@protonmail.com>
  3. Date: Thu, 26 Oct 2017 16:40:29 -0400
  4. Subject: [PATCH] fix systemd units
  5. ---
  6. contrib/systemd/cjdns-resume.service | 2 +-
  7. contrib/systemd/cjdns.service | 2 +-
  8. 2 files changed, 2 insertions(+), 2 deletions(-)
  9. diff --git a/contrib/systemd/cjdns-resume.service b/contrib/systemd/cjdns-resume.service
  10. index 3e6ce991..92c0bdc1 100644
  11. --- a/contrib/systemd/cjdns-resume.service
  12. +++ b/contrib/systemd/cjdns-resume.service
  13. @@ -4,7 +4,7 @@ After=sleep.target
  14. [Service]
  15. Type=oneshot
  16. -ExecStart=/bin/systemctl restart cjdns
  17. +ExecStart=/usr/bin/systemctl restart cjdns
  18. [Install]
  19. WantedBy=sleep.target
  20. diff --git a/contrib/systemd/cjdns.service b/contrib/systemd/cjdns.service
  21. index 3238aefb..aa4a49fb 100644
  22. --- a/contrib/systemd/cjdns.service
  23. +++ b/contrib/systemd/cjdns.service
  24. @@ -9,7 +9,7 @@ ProtectSystem=true
  25. SyslogIdentifier=cjdroute
  26. ExecStartPre=/bin/sh -ec "if ! test -s /etc/cjdroute.conf; \
  27. then umask 077; \
  28. - /usr/bin/cjdroute --genconf > /etc/cjdroute.conf; \
  29. + /usr/sbin/cjdroute --genconf > /etc/cjdroute.conf; \
  30. echo 'WARNING: A new /etc/cjdroute.conf file has been generated.'; \
  31. fi"
  32. ExecStart=/bin/sh -c "exec cjdroute --nobg < /etc/cjdroute.conf"
  33. --
  34. 2.13.6