November 10, 20196 yr Hello community, i am a litte ashamed but i can not find the bash command for starting my array. I want to start my array using my go config file: sleep 1 wget --user=xxx --password='xxx' ftp://xxx -O /root/xxx sleep 4 7z e /root/keyfile.7z -pxxx -O/root/ sleep 10 -> Command bash for starting array ??? <- The command should have the same function as the button inside the GUI / Main Page -> Button " Start Array". Thank for your help and mabye you can show me the manuel / webpage where i can find the bash commands for unraid. Kind regadrs and thx for your help Raptor2k
November 10, 20196 yr 13 minutes ago, Raptor2k said: I want to start my array using my go config file: Admittedly I'm confused. Why would you want to start the array via a command in the "go" file instead of simply going to Settings - Disk Settings - and enabling auto start?
November 11, 20196 yr Author On 11/10/2019 at 4:48 PM, Squid said: Admittedly I'm confused. Why would you want to start the array via a command in the "go" file instead of simply going to Settings - Disk Settings - and enabling auto start? i want an extra command cause my array is not auto starting. My Unraid Nas is downloading the file, unzip it but not start the array. Auto Start is enabled. So i thought... add an extra line of code in the go file. Thx for your fast respone.
November 11, 20196 yr Here's the starting point for a command. But, you'd also need to append the current csrf token (/var/local/emhttp/var.ini). But even there, I have no idea if the command would work under 6.8 since you're not logged in either. My best suggestion would be to place those commands for the download in the go file, prior to the emhttp line (with appropriate waits to ensure the network is running) https://forums.unraid.net/topic/50490-solved-commands-to-start-and-stop-array/?tab=comments#comment-496967
November 11, 20196 yr /usr/local/sbin/emhttp Is used to start the array and other relevant services. Make this the last command in your go file
November 14, 20196 yr Author Thank you Squid and bonienl. The hint of boninl works flawlessly. Here is my new go config file for the community: #!/bin/bash # Start the Management Utility sleep 1 wget --user=xxx --password='xxx' ftp://xxx.7z -O /root/xxx.7z sleep 4 7z e /root/xxx.7z -pxxx -O/root/ sleep 4 /usr/local/sbin/emhttp & Now the services start and unraid can unlock my array. Just for the record. I am using version 6.7.2 Kind regards Raptor2k
Archived
This topic is now archived and is closed to further replies.