Restarting OpenVPN Service randomly via cron job?
-
Hi,
I would like to be able to restart my OpenVPN client every 24 hours, but with aslight nuance...I don't want it to restart at the exact same time each day.
Something like [22:00 hrs +rand()*4:00 hrs] so that it would restart at some random point between 10pm and 2AM, uniquely, every day.
I'm assuming it will involve cron, but I'm out of my depth there. Anyone got any bright ideas?
Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.