|
[Tutorial] Installing MinimServer on FreeNAS or FreeBSD
|
|
27-06-2020, 15:08
(This post was last modified: 27-06-2020 15:10 by Hibiki.)
Post: #68
|
|||
|
|||
|
RE: [Tutorial] Installing MinimServer on FreeNAS or FreeBSD
So, I tried to make multiple instances within FreeNAS with the following access paths:
/usr/local/share/minimserver /usr/local/share/minimserver-2/minimserver /usr/local/share/minimserver-3/minimserver I changed http.port and ohnet.port on every instances to never get the 2 same port numbers. Is it really important for ohnet.port? So basically, I have for the first instance: Code: http.port = 9790The second one: Code: http.port = 9792And the third one: Code: http.port = 9794All can be manually launched. Then I tried to modify the script for the automatic launch at boot. Just before, I sent the commands: Code: /usr/bin/sed -i -- 's/-eo pid,user,vsz,stat,args/-exo pid,user,vsz,stat,args/g' /usr/local/share/minimserver-2/minimserver/bin/stopallThen I modified the script /etc/rc.d/minimserver like this: Code: #!/bin/shAnd it doesn't really work... Inside the Jail when I type : service minimserver stop the first time I got (while all instances were running): Code: root@Minimserver:/etc/rc.d # service minimserver stopOnly the first instance is stopped, the two others are running... I tried a second time: Code: root@Minimserver:~ # service minimserver stopNo change... With: Code: root@Minimserver:/etc/rc.d # service minimserver startOnly the first instance is starting... When I exit the Jail and I stop the Jail (iocage stop Minimserver). I restart the Jail (iocage start Minimserver), it starts all MinimServer instances (?!) Where am I wrong? When I changed Code: checkyesno minimserver_enable && echo "Starting minimserver." && \to Code: checkyesno minimserver_enable && echo "Starting minimserver." && \Nothing started at all (I thought I missed the "&&\" to split the same command on several lines). May you help me, please? Cheers |
|||
|
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 2 Guest(s)

Search
Member List
Calendar
Help



