Having trouble on last part of lidarr install

zazza

Dabbler
Joined
Jun 3, 2018
Messages
22
Thank you for reading,

I am following this tutorial https://github.com/lidarr/Lidarr/wiki/Installation-(FreeBSD-FreeNAS)

All seems to go just fine until I get to the part where I need to run this
Code:
service lidarr start


I get this output
root@lidarr:/etc/rc.d # echo 'lidarr_enable="YES"' >> /etc/rc.conf
root@lidarr:/etc/rc.d #
root@lidarr:/etc/rc.d # service lidarr start
/etc/rc.d/lidarr: somewhere: not found
/etc/rc.d/lidarr: 17: Syntax error: "(" unexpec

I have a screenshot of my nano edits, I'm fairly certain the directories are correct.

Any help is always appreciated.
Wazza
Screen Shot 2019-07-08 at 2.03.05 PM.png
 

zazza

Dabbler
Joined
Jun 3, 2018
Messages
22
This is the code from the tutorial
[CODE]#!/bin/sh # # Author: Jarod Sams # # PROVIDE: lidarr # REQUIRE: LOGIN # KEYWORD: shutdown # Add the following lines to /etc/rc.conf to enable lidarr: # lidarr_enable="YES" . /etc/rc.subr name="lidarr" rcvar=lidarr_enable load_rc_config $name : ${lidarr_enable="NO"} : ${lidarr_user:="lidarr"} # This next directory can be changed to whatever you want : ${lidarr__data_dir:="/usr/local/lidarr"} pidfile="${lidarr__data_dir}/lidarr.pid" # You may need to adjust the mono location if your mono executable is somewhere else procname="/usr/local/bin/mono" command="/usr/sbin/daemon" # The directory laid out in the next line will need to be changed if your Lidarr directory is elsewhere command_args="-f ${procname} /usr/local/share/Lidarr/Lidarr.exe --nobrowser --data=${lidarr__data_dir}" start_precmd=lidarr_precmd lidarr_precmd() { export XDG_CONFIG_HOME=${lidarr__data_dir} if [ ! -d ${lidarr__data_dir} ]; then install -d -o ${lidarr_user} ${lidarr__data_dir} fi } run_rc_command "$1" [/CODE]
 

rob_anybody

Dabbler
Joined
Jul 8, 2019
Messages
12
your screenshot does not match the tutorial code you provided in your second post
/usr/local/Lidarr/Lidarr.exe
/usr/local/share/Lidarr/Lidarr.exe

also chek if /usr/local/etc/rc.d/lidarr does exist

hope that helps
 

zazza

Dabbler
Joined
Jun 3, 2018
Messages
22
I will try
your screenshot does not match the tutorial code you provided in your second post
/usr/local/Lidarr/Lidarr.exe
/usr/local/share/Lidarr/Lidarr.exe

also chek if /usr/local/etc/rc.d/lidarr does exist

hope that helps
Thanks. Ill give it a try
 

zazza

Dabbler
Joined
Jun 3, 2018
Messages
22
your screenshot does not match the tutorial code you provided in your second post
/usr/local/Lidarr/Lidarr.exe
/usr/local/share/Lidarr/Lidarr.exe

also chek if /usr/local/etc/rc.d/lidarr does exist

hope that helps
Thats correct. But the tutorial states that you might need to modify it for your particular config. That is where my Lidarr.exe resides on my machine.
 

zazza

Dabbler
Joined
Jun 3, 2018
Messages
22
your screenshot does not match the tutorial code you provided in your second post
/usr/local/Lidarr/Lidarr.exe
/usr/local/share/Lidarr/Lidarr.exe

also chek if /usr/local/etc/rc.d/lidarr does exist

hope that helps
My rc.d file exists in /etc/rc.d
 

rob_anybody

Dabbler
Joined
Jul 8, 2019
Messages
12
Ah sorry
I must have been a bit tired.
While rereading the error message you provided its obvious your rc.d file has unexpected linebreaks. Look at the line starting with somewehre!
I think you can open nano with -l to show linenumbers, check line 17.
 

zazza

Dabbler
Joined
Jun 3, 2018
Messages
22
Ah sorry
I must have been a bit tired.
While rereading the error message you provided its obvious your rc.d file has unexpected linebreaks. Look at the line starting with somewehre!
I think you can open nano with -l to show linenumbers, check line 17.
This was super helpful. I went through line by line

Unfortunately there is another problem that is preventing to start. Ill send screenshots later, maybe there is some sage you have.
I think its related to uppercase letters
 
Top