Revert "Add log file to tacker-server systemctl daemon script"

Due this patch there are some issue with logging:

1: No Tacker logs generating on gate.
2: No logs in journalctl
3: unable to set log location with config file.

So here reverting this patch.

Closes-Bug: #1782718

This reverts commit 7f60e64bd3.

Change-Id: I8dd56d049459037a0f5ea5fd11aaa4449fc55f0f
This commit is contained in:
dharmendra kushwaha 2018-07-23 04:44:05 +00:00
parent 7f60e64bd3
commit faeea96d26
2 changed files with 1 additions and 10 deletions

View File

@ -52,9 +52,6 @@ fi
TACKER_CONF_DIR=/etc/tacker
TACKER_CONF=$TACKER_CONF_DIR/tacker.conf
TACKER_LOG_DIR=/var/log/tacker
TACKER_SERVER_LOG=$TACKER_LOG_DIR/tacker-server.log
# Default name for Tacker database
TACKER_DB_NAME=${TACKER_DB_NAME:-tacker}
# Default Tacker Port
@ -175,16 +172,10 @@ function _create_tacker_conf_dir {
sudo install -d -o $STACK_USER $TACKER_CONF_DIR
}
function _create_tacker_log_dir {
# Create Tacker LOG DIR
sudo install -d -o $STACK_USER $TACKER_LOG_DIR
}
# configure_tacker()
# Set common config for all tacker server and agents.
function configure_tacker {
_create_tacker_conf_dir
_create_tacker_log_dir
cd $TACKER_DIR
./tools/generate_config_file_sample.sh

View File

@ -6,7 +6,7 @@ ExecReload = /bin/kill -HUP $MAINPID
TimeoutStopSec = 300
KillMode = process
WorkingDirectory = /tmp
ExecStart=/usr/local/bin/tacker-server --config-file /etc/tacker/tacker.conf --log-file /var/log/tacker-server.log
ExecStart=/usr/local/bin/tacker-server --config-file /etc/tacker/tacker.conf
[Install]
WantedBy = multi-user.target