Hi all,
I am trying to daemonize scmserver and it's not going well. Here is my script from /usr/local/etc/rc.d/scmserver:
Running
Help!
-Will
I am trying to daemonize scmserver and it's not going well. Here is my script from /usr/local/etc/rc.d/scmserver:
Code:
#!/bin/sh
# PROVIDE: scmserver
# REQUIRE: LOGIN
# KEYWORD: shutdown
#
# Add the following line to /etc/rc.conf to enable 'scmserver':
#
# scmserver_enable="YES"
. /etc/rc.subr
name=scmserver
rcvar=scmserver_enable
load_rc_config ${name}
: ${scmserver_enable:=NO}
: ${scmserver_user:=scm}
: ${scmserver_group:=scm}
: ${scmserver_chdir=/scm}
pidfile="/var/run/scm/${name}.pid"
procname="/usr/local/openjdk22/bin/java"
command=/usr/sbin/daemon
command_args="-f -p ${pidfile} /usr/local/scm-server/bin/scm-server"
echo $command $command_args
run_rc_command "$1"
Running
service scmserver start
doesn't do anything other than echoing the correct daemon command and printing Starting scmserver. The command that gets echoed works (if I copy and paste it in the terminal the daemon is started) but it won't start with the service command.Help!
-Will