Limit logs for “journalctl services” in systemd - Centos 7
问题 I have a service in **/etc/systemd/sysem/horses.service** [Unit] Description=Description for sample script goes here After=rc-local.service [Service] Type=simple ExecStart=/opt/horses/startSanic2.sh TimeoutStartSec=0 Environment="REDIS_HOST=192.168.150.220" Environment="REDIS_PORT=6379" [Install] WantedBy=default.target It runs the shell script with this code: #!/bin/bash gunicorn horses.server:app --bind 0.0.0.0:9000 --worker-class sanic.worker.GunicornWorker --reload I succesfully run it