docker-erable/Docker/php-8.1-fpm/rsyslog.service

18 lines
301 B
SYSTEMD
Raw Normal View History

2023-11-19 11:36:05 +01:00
[Unit]
Description=rsyslog
After=docker.service
Requires=docker.service
[Service]
ExecStartPre=-/usr/bin/docker rm %n
ExecStart=/usr/bin/docker run --rm \
--name %n \
-h %H \
jumanjiman/rsyslog
ExecStop=/usr/bin/docker stop %n
RestartSec=5s
Restart=always
[Install]
WantedBy=multi-user.target