1
22.7 Legacy Series / Cron for OpenVPN
« on: November 16, 2022, 11:18:56 am »
Hi All,
Just having a few issues creating a custom cron to restart the openvpn service on a defined schedule. Hopefully this will resolve an issue i am having with it consistently dropping and failing to reconnect ever 2-3 days. I have followed this topic https://forum.opnsense.org/index.php?topic=2263.0 to generate the below.
When I manually run
Does anyone have any ideas on why this is occurring?
Just having a few issues creating a custom cron to restart the openvpn service on a defined schedule. Hopefully this will resolve an issue i am having with it consistently dropping and failing to reconnect ever 2-3 days. I have followed this topic https://forum.opnsense.org/index.php?topic=2263.0 to generate the below.
Code: [Select]
[stop]
command:/usr/local/sbin/pluginctl -s openvpn stop
parameters:
type:script
message:stop openvpn service
description:Stop openvpn
[start]
command:/usr/local/sbin/pluginctl -s openvpn start
parameters:
type:script
message:start openvpn service
description:Start openvpn
[restart]
command:/usr/local/sbin/pluginctl -s openvpn restart
parameters:
type:script
message:restart openvpn service
description:Restart openvpn
When I manually run
Code: [Select]
/usr/local/sbin/pluginctl -s openvpn restart
the expected behavior of restarting the openvpn service occurs. however when I use Code: [Select]
configctl openvpn restart
to call the corresponding function in my conf file it returns "OK" but fails to restart the service.Does anyone have any ideas on why this is occurring?