ViciousXUSMC
Dabbler
- Joined
- May 12, 2014
- Messages
- 49
I have searched around a bit and not found a good final answer.
In the case of say Transmission running in a jail, it flakes out once in a while so rather than being reactive and manually finding it down and rebooting the jail or the service I think I will just set a daily restart of that service/jail.
A few of the answers I have found were laced with "you should not do that, it might break something" and I have broken things before so checking in first.
My first idea:
Warden Stop %JailName%
Warden Start %JailName%
I think Warden is pretty safe and just used it the other day to fix my whole template missing thing when I moved my jails root.
Next idea:
jexec %jailid% tcsh
service transmission restart
I just need to make sure I get the right jail ID and I think this should work well.
Last one:
/etc/rc.d/jail onestart
/etc/rc.d/jail onestop
I do not know exactly what to do with this one and it seems like its pretty old hat, but tossing it in as an answer.
So is there a best (safe) way? and how do you do it?
In the case of say Transmission running in a jail, it flakes out once in a while so rather than being reactive and manually finding it down and rebooting the jail or the service I think I will just set a daily restart of that service/jail.
A few of the answers I have found were laced with "you should not do that, it might break something" and I have broken things before so checking in first.
My first idea:
Warden Stop %JailName%
Warden Start %JailName%
I think Warden is pretty safe and just used it the other day to fix my whole template missing thing when I moved my jails root.
Next idea:
jexec %jailid% tcsh
service transmission restart
I just need to make sure I get the right jail ID and I think this should work well.
Last one:
/etc/rc.d/jail onestart
/etc/rc.d/jail onestop
I do not know exactly what to do with this one and it seems like its pretty old hat, but tossing it in as an answer.
So is there a best (safe) way? and how do you do it?