FlyingPersian
Patron
- Joined
- Jan 27, 2014
- Messages
- 237
Hi
I'm running subsonic in a jail and installed it according to this thread. The startup script does not have a pidfile, so using
However, the pidfile isn't created. I'm running the script as the user sonic and added him to wheel, because I thougth that he might not have sufficient permissions. I don't have any error in the subsonic.log, subsonic_sh.log, or any log file in /var/logs/ relating to this, so I can't give much more infos.
I'm running subsonic in a jail and installed it according to this thread. The startup script does not have a pidfile, so using
service subsonic restart won't work. I've edited the script a little bit. I changed the subsonic_bin to my actual path, so that I don't need to define it in /etc/rc.conf, and added pidfile="/var/run/${name}.pid". Here the full script:Code:
#!/bin/sh
#
# PROVIDE: subsonic
# REQUIRE: LOGIN DAEMON NETWORKING
# KEYWORD: shutdown
#
# To enable subsonic, add this line to your /etc/rc.conf:
#
# subsonic_enable="YES"
#
# And optionally these line:
#
# subsonic_user="username" # Default is "root"
# subsonic_bin="/path/to/subsonic.sh" # Default is "/home/sonic/subsonic/standalone/subsonic.sh"
. /etc/rc.subr
name="subsonic"
rcvar="subsonic_enable"
load_rc_config $name
required_files=$subsonic_bin
: ${subsonic_enable="NO"}
: ${subsonic_user="root"}
: ${subsonic_bin="/home/sonic/subsonic/standalone/subsonic.sh"}
pidfile="/var/run/subsonic.pid"
command=$subsonic_bin
run_rc_command "$1"However, the pidfile isn't created. I'm running the script as the user sonic and added him to wheel, because I thougth that he might not have sufficient permissions. I don't have any error in the subsonic.log, subsonic_sh.log, or any log file in /var/logs/ relating to this, so I can't give much more infos.
Last edited by a moderator: