FrankWard
Explorer
- Joined
- Feb 13, 2023
- Messages
- 71
I've created a Jail with the Subsonic streamer. I've set up the script as /etc/rc.d/subsonic and set permissions with chmod 777 and chmod +x. I've added the enable command in rc.conf. When I run "/etc/rc.d/subsonic start" from the CLI it works and the web UI is accessible. However, it doe not execute the script when the jail is rebooted. Here are my scripts. Is there anything I'm missing?
/etc/rc.conf
/etc/rc.d/subsonic
Thanks!
/etc/rc.conf
Code:
subsonic_enable="YES"
/etc/rc.d/subsonic
Code:
#!/bin/sh . /etc/rc.subr name="subsonic" rcvar="subsonic_enable" start_cmd="${name}_start" stop_cmd=":" load_rc_config $name subsonic_start() { echo "Running Subsonic" /var/subsonic/subsonic.sh } run_rc_command "$1"
Thanks!