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,8 +31,7 @@ whatami=cloudstack-agent
3131SHORTNAME=" $whatami "
3232PIDFILE=/var/run/" $whatami " .pid
3333LOCKFILE=/var/lock/subsys/" $SHORTNAME "
34- LOGDIR=/var/log/cloudstack/agent
35- LOGFILE=${LOGFIR} /agent.log
34+ LOGFILE=/var/log/cloudstack/agent/agent.log
3635PROGNAME=" Cloud Agent"
3736CLASS=" com.cloud.agent.AgentShell"
3837JSVC=` which jsvc 2> /dev/null` ;
@@ -68,7 +67,7 @@ export CLASSPATH="$SCP:$DCP:$ACP:$JCP:/etc/cloudstack/agent:/usr/share/cloudstac
6867start () {
6968 echo -n $" Starting $PROGNAME : "
7069 if hostname --fqdn > /dev/null 2>&1 ; then
71- $JSVC -cp " $CLASSPATH " -outfile " ${LOGDIR} /cloudstack-agent.out " -errfile " ${LOGDIR} /cloudstack-agent.err " - pidfile " $PIDFILE " $CLASS
70+ $JSVC -cp " $CLASSPATH " -pidfile " $PIDFILE " $CLASS
7271 RETVAL=$?
7372 echo
7473 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- LOGDIR=/var/log/cloudstack/usage
39- LOGFILE=${LOGDIR} /usage.log
38+ LOGFILE=/var/log/cloudstack/usage/usage.log
4039PROGNAME=" CloudStack Usage Monitor"
4140CLASS=" com.cloud.usage.UsageServer"
4241PROG=" jsvc"
@@ -80,7 +79,7 @@ start() {
8079
8180 echo -n " Starting $PROGNAME " " $SHORTNAME "
8281
83- if daemon --pidfile $PIDFILE $DAEMON -cp " $CLASSPATH " -outfile " ${LOGDIR} /cloudstack-usage.out " -errfile " ${LOGDIR} /cloudstack-usage.err " - pidfile " $PIDFILE " -user " $USER " -Dpid=$$ $CLASS
82+ if daemon --pidfile $PIDFILE $DAEMON -cp " $CLASSPATH " - pidfile " $PIDFILE " -user " $USER " -errfile SYSLOG -Dpid=$$ $CLASS
8483 RETVAL=$?
8584 then
8685 rc=0
You can’t perform that action at this time.
0 commit comments