Advertisement
LittleFox94

ifcrontab 2

Jul 24th, 2016
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.70 KB | None | 0 0
  1. # This is the main configuration file for ifcron
  2. #
  3. # Every line is another task and everything after a # is ignored, so you can
  4. # write comments.
  5. #
  6. # Please keep in mind:
  7. # * tasks are started as root without environment
  8. # * you have to use absolute paths
  9. # * ifcron will start a task even if the same is already running, you have
  10. # to lock on your own
  11. # * please keep conditions simple to not trigger bugs ;)
  12.  
  13. # Conditions
  14. # A single condition has always the following form:
  15. # <interface>.<property> <operator> <expected>
  16. #
  17. # "interface" can be any name of an interface, connected or not. Conditions
  18. # using non-available interface evaluate to false, except the negation-modifier
  19. # is used.
  20. #
  21. # "property" can be a single property of those defined for the type of the
  22. # interface. Some useful properties are "ipv4", "ipv6" for IP addresses or
  23. # "ssid" for wireless interfaces.
  24. #
  25. # "operator" is one of the following:
  26. # "=" the property is exact the same as given
  27. # "~" the ip is in the given network (given in /prefix notation)
  28. # There is also the negation modifier "!", which can be written before the
  29. # operator an will negate the result.
  30. #
  31. # "expected" is what you want to compare the property to, for example an
  32. # ip address or a network.
  33. #
  34. # Intervals
  35. # You can specify intervals for tasks, such as every day or all 3 hours.
  36. #
  37. # Below you can find some examples.
  38.  
  39. # condition interval command
  40. #enp8s0.ipv4 ~ 172.20.239.128/26 1d /root/bin/backup-to-pc
  41. #enp8s0.ipv4 ~ 172.20.239.128/26 - /bin/systemctl stop openvpn@public-network
  42. #enp8s0.ipv4 !~ 172.20.239.128/26 - /bin/systemctl start openvpn@public-network
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement