File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -31,7 +31,8 @@ whatami=cloudstack-agent
3131SHORTNAME=" $whatami "
3232PIDFILE=/var/run/" $whatami " .pid
3333LOCKFILE=/var/lock/subsys/" $SHORTNAME "
34- LOGFILE=/var/log/cloudstack/agent/agent.log
34+ LOGDIR=/var/log/cloudstack/agent
35+ LOGFILE=${LOGFIR} /agent.log
3536PROGNAME=" Cloud Agent"
3637CLASS=" com.cloud.agent.AgentShell"
3738JSVC=` which jsvc 2> /dev/null` ;
@@ -67,7 +68,7 @@ export CLASSPATH="$SCP:$DCP:$ACP:$JCP:/etc/cloudstack/agent:/usr/share/cloudstac
6768start () {
6869 echo -n $" Starting $PROGNAME : "
6970 if hostname --fqdn > /dev/null 2>&1 ; then
70- $JSVC -cp " $CLASSPATH " -pidfile " $PIDFILE " $CLASS
71+ $JSVC -cp " $CLASSPATH " -outfile " ${LOGDIR} /cloudstack-agent.out " -errfile " ${LOGDIR} /cloudstack-agent.err " - pidfile " $PIDFILE " $CLASS
7172 RETVAL=$?
7273 echo
7374 else
Original file line number Diff line number Diff line change 3535SHORTNAME=" cloudstack-usage"
3636PIDFILE=/var/run/" $SHORTNAME " .pid
3737LOCKFILE=/var/lock/subsys/" $SHORTNAME "
38- LOGFILE=/var/log/cloudstack/usage/usage.log
38+ LOGDIR=/var/log/cloudstack/usage
39+ LOGFILE=${LOGDIR} /usage.log
3940PROGNAME=" CloudStack Usage Monitor"
4041CLASS=" com.cloud.usage.UsageServer"
4142PROG=" jsvc"
@@ -79,7 +80,7 @@ start() {
7980
8081 echo -n " Starting $PROGNAME " " $SHORTNAME "
8182
82- if daemon --pidfile $PIDFILE $DAEMON -cp " $CLASSPATH " - pidfile " $PIDFILE " -user " $USER " -errfile SYSLOG -Dpid=$$ $CLASS
83+ if daemon --pidfile $PIDFILE $DAEMON -cp " $CLASSPATH " -outfile " ${LOGDIR} /cloudstack-usage.out " -errfile " ${LOGDIR} /cloudstack-usage.err " - pidfile " $PIDFILE " -user " $USER " -Dpid=$$ $CLASS
8384 RETVAL=$?
8485 then
8586 rc=0
You can’t perform that action at this time.
0 commit comments