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

18 lines
301 B
SYSTEMD
Raw Normal View History

2024-02-20 11:18: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