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 7f60e64bd3cdca461e1e3b507a1b557fd3240a89. Change-Id: I8dd56d049459037a0f5ea5fd11aaa4449fc55f0f
This commit is contained in:
parent
7f60e64bd3
commit
faeea96d26
@ -52,9 +52,6 @@ fi
|
|||||||
TACKER_CONF_DIR=/etc/tacker
|
TACKER_CONF_DIR=/etc/tacker
|
||||||
TACKER_CONF=$TACKER_CONF_DIR/tacker.conf
|
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
|
# Default name for Tacker database
|
||||||
TACKER_DB_NAME=${TACKER_DB_NAME:-tacker}
|
TACKER_DB_NAME=${TACKER_DB_NAME:-tacker}
|
||||||
# Default Tacker Port
|
# Default Tacker Port
|
||||||
@ -175,16 +172,10 @@ function _create_tacker_conf_dir {
|
|||||||
sudo install -d -o $STACK_USER $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()
|
# configure_tacker()
|
||||||
# Set common config for all tacker server and agents.
|
# Set common config for all tacker server and agents.
|
||||||
function configure_tacker {
|
function configure_tacker {
|
||||||
_create_tacker_conf_dir
|
_create_tacker_conf_dir
|
||||||
_create_tacker_log_dir
|
|
||||||
|
|
||||||
cd $TACKER_DIR
|
cd $TACKER_DIR
|
||||||
./tools/generate_config_file_sample.sh
|
./tools/generate_config_file_sample.sh
|
||||||
|
@ -6,7 +6,7 @@ ExecReload = /bin/kill -HUP $MAINPID
|
|||||||
TimeoutStopSec = 300
|
TimeoutStopSec = 300
|
||||||
KillMode = process
|
KillMode = process
|
||||||
WorkingDirectory = /tmp
|
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]
|
[Install]
|
||||||
WantedBy = multi-user.target
|
WantedBy = multi-user.target
|
||||||
|
Loading…
x
Reference in New Issue
Block a user