Automatically run command in jail on boot

Status
Not open for further replies.

metz2

Cadet
Joined
May 25, 2015
Messages
3
Hi,

I hope this hasn't been answered here before a thousand times, but I couldn't find any answer...

I'm trying to execute the following command upon starting a jail for JDownloader (java) on FreeNAS 9.3:

Code:
java -Djava.awt.headless=true -jar /usr/bin/jDownloader/JDownloader.jar


It works manually from the terminal, but where can i paste this line so it starts automatically on boot...? Does it work without a script? Because I have no idea how to write one...

Help appreciated! :)
 

DrKK

FreeNAS Generalissimo
Joined
Oct 15, 2013
Messages
3,630
Sir: You may this link to be useful. For the purposes of this discussion, pretend your jail is actually a full-blown FreeBSD install.
 
Status
Not open for further replies.
Top