Artem Goncharov 9fd77b3856
install default logging config
By default gear dies not deliver default logging configuration. If it is
started in this configuration it floods /var/log/messages with debug
info. Log configuration activation should be done via systemd
override.conf file by setting proper ARGS

Update jobs to also collect /var/logs/gear in post-run task.

Change-Id: Ib69c976062afd38a91a3d882e9389c5cbef244c3
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2018-05-16 17:12:48 -04:00

18 lines
422 B
Desktop File

[Unit]
Description=Gear Service
After=syslog.target network.target
[Service]
Type=simple
# The prefix used when gear was installed. Be sure to update this
# value if you are using a virtualenv.
Environment="PREFIX=/usr/local"
# Options to pass to gear.
Environment="ARGS=--log-config /etc/gear/logging.conf"
Group=gear
User=gear
ExecStart=/bin/sh -c "${PREFIX}/bin/geard -d ${ARGS}"
[Install]
WantedBy=multi-user.target