602c4d42de
- Execute test groups in serial to make sure no more than 2 database instance are created at the same time. - Remove some unneccesary tests - Remove unneeded datastore, e.g. 'Test_Datastore_1' - Remove unsupported trovestack subcommands - Move unsupported DIB elements to the 'deprecated-elements' folder - Decrease default value of 'agent_call_high_timeout' to 5min - Add initial_deplay for pooling task - Use socket file to connect with database instead of using localhost IP Change-Id: Ie5030a671fbeb453eafa6cbe04e08da7b52e33c9
37 lines
1.7 KiB
Plaintext
37 lines
1.7 KiB
Plaintext
[Unit]
|
|
Description=Trove Guest
|
|
After=syslog.target network.target
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|
|
|
|
[Service]
|
|
Type=simple
|
|
User=GUEST_USERNAME
|
|
Group=GUEST_USERNAME
|
|
|
|
# This script is only for testing purpose for dev_mode=true, the controller
|
|
# IP address should be defined in /etc/trove/controller.conf, e.g.
|
|
# CONTROLLER=192.168.32.151
|
|
EnvironmentFile=/etc/trove/controller.conf
|
|
|
|
ExecStartPre=/bin/bash -c "sudo mkdir -p GUEST_LOGDIR"
|
|
|
|
# If ~/trove-installed does not exist, copy the trove source from
|
|
# the user's development environment, then touch the sentinel file
|
|
ExecStartPre=/bin/bash -c "test -e /home/GUEST_USERNAME/trove-installed || sudo rsync -e 'ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -i /home/GUEST_USERNAME/.ssh/id_rsa' -avz --exclude='.*' HOST_SCP_USERNAME@$CONTROLLER:PATH_TROVE/ /home/GUEST_USERNAME/trove && touch /home/GUEST_USERNAME/trove-installed"
|
|
|
|
# If /etc/trove does not exist, create it and then copy the trove-guestagent.conf
|
|
# from /etc/trove on the user's development environment,
|
|
ExecStartPre=/bin/bash -c "test -d /etc/trove/conf.d || sudo mkdir -p /etc/trove/conf.d && sudo rsync -e 'ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -i /home/GUEST_USERNAME/.ssh/id_rsa' -avz --exclude='.*' HOST_SCP_USERNAME@$CONTROLLER:/etc/trove/trove-guestagent.conf ~GUEST_USERNAME/ && sudo mv ~GUEST_USERNAME/trove-guestagent.conf /etc/trove/conf.d/trove-guestagent.conf"
|
|
|
|
ExecStartPre=/bin/bash -c "sudo chown -R GUEST_USERNAME:root /etc/trove /home/GUEST_USERNAME/trove GUEST_LOGDIR"
|
|
|
|
# Start trove-guest.service
|
|
ExecStart=/bin/bash -c "/home/GUEST_USERNAME/trove/contrib/trove-guestagent --config-dir=/etc/trove/conf.d"
|
|
|
|
TimeoutSec=300
|
|
Restart=on-failure
|
|
|
|
# PostgreSQL doesn't play nice with PrivateTmp
|
|
PrivateTmp=false |