cron jail restart by name

Status
Not open for further replies.

verinas

Dabbler
Joined
Mar 29, 2016
Messages
34
Hi All,

I've been trying to fix an issue where one of my jails loses hostname resolution and becomes useless after about 24h. As I can't find any resolution I just want to restart the jail every 24h which is what I'm currently doing manually.

Is there a way to cron the restart of a jail by name? i.e. transmission

I don't want to restart the transmission service I actually need to reboot the jail itself as that is the only way I seem to be able to get host resolution back. It then works fine for around a day and then suddenly stops working.

Thanks for the help.
 

Sakuru

Guru
Joined
Nov 20, 2015
Messages
527
Code:
warden stop "name of jail"
warden start "name of jail"
 

Sakuru

Guru
Joined
Nov 20, 2015
Messages
527
Unfortunately no, there is no "warden restart".
 
Status
Not open for further replies.
Top