Skip to main content
another almost useful part of systemd
Source Link
rogerdpack
  • 1.9k
  • 3
  • 18
  • 26

You could add a delay: https://stackoverflow.com/q/43001223/32453

Or possibly could do this in your systemd OpenVPN service file:

 ExecStartPost=/bin/bash -c 'do_bash_loop_that_waits_till_file_appears_here'

And another option: create a systemd .path unit file. Maybe have it fire whenever that vpn.env file is created or changed.

You could add a delay: https://stackoverflow.com/q/43001223/32453

Or possibly could do this in your systemd OpenVPN service file:

 ExecStartPost=/bin/bash -c 'do_bash_loop_that_waits_till_file_appears_here'

You could add a delay: https://stackoverflow.com/q/43001223/32453

Or possibly could do this in your systemd OpenVPN service file:

 ExecStartPost=/bin/bash -c 'do_bash_loop_that_waits_till_file_appears_here'

And another option: create a systemd .path unit file. Maybe have it fire whenever that vpn.env file is created or changed.

Source Link
rogerdpack
  • 1.9k
  • 3
  • 18
  • 26

You could add a delay: https://stackoverflow.com/q/43001223/32453

Or possibly could do this in your systemd OpenVPN service file:

 ExecStartPost=/bin/bash -c 'do_bash_loop_that_waits_till_file_appears_here'