Skip to content

Conversation

@angristan
Copy link
Owner

@angristan angristan commented Jan 10, 2026

  • Use /var/run/openvpn-server/ instead of /var/run/openvpn/ for the management socket
  • The former is created at boot by OpenVPN's tmpfiles.d, the latter was lost on reboot

Fixes #1451

Use /var/run/openvpn-server/ instead of /var/run/openvpn/ for the
management socket. The former is created at boot by OpenVPN's tmpfiles.d
configuration, while the latter was manually created and lost on reboot.

Fixes #1451
Copilot AI review requested due to automatic review settings January 10, 2026 09:14
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request updates the OpenVPN management socket path to use a directory that persists across reboots. The change addresses issue #1451 where the management socket directory was lost after system reboot.

Changes:

  • Updated management socket path from /var/run/openvpn/ to /var/run/openvpn-server/
  • Removed manual directory creation code that is no longer needed (the directory is created by OpenVPN's tmpfiles.d configuration)
  • Updated all test assertions to verify the new socket path

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
openvpn-install.sh Updated management socket path in server configuration, removed manual directory creation, and updated disconnectClient function
test/server-entrypoint.sh Updated all test assertions to check for the new management socket path

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@angristan angristan merged commit 8e8aeea into master Jan 13, 2026
32 checks passed
@angristan angristan deleted the fix-management-socket-path branch January 13, 2026 21:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Not running after reboot of service

2 participants