1
0
mirror of https://github.com/Radarr/Radarr.git synced 2024-11-19 17:32:38 +01:00

added rc.d script for FreeBSD

tdunks 2017-06-18 18:25:40 -04:00
parent a096112290
commit 39f60694a9

@ -62,4 +62,40 @@ ln -s /usr/local/bin/mono /bin
restart your jail
use your browser and navigate to jail_ip:7878
```
An alternative rc.d script for FreeBSD jails is listed below which allows you to change the user radarr runs as. Create /etc/rc.d/radarr or /usr/local/rc.d/radarr and paste the following into it:
```
#!/bin/sh
#
# $FreeBSD$
#
# PROVIDE: radarr
# REQUIRE: LOGIN
# KEYWORD: shutdown
# Add the following lines to /etc/rc.conf to enable radarr:
# radarr_enable="YES"
. /etc/rc.subr
name="radarr"
rcvar=radarr_enable
load_rc_config $name
: ${radarr_enable="NO"}
: ${radarr_user:="media"}
: ${radarr_group:="media"}
: ${radarr_data_dir:="/var/db/radarr"}
procname="/usr/local/bin/mono"
command="/usr/sbin/daemon"
command_args="-f ${procname} /usr/local/share/Radarr/Radarr.exe --data=${radarr_data_dir}"
start_precmd="export XDG_CONFIG_HOME=${radarr_data_dir}"
run_rc_command "$1"
```