28 lines
494 B
SYSTEMD
28 lines
494 B
SYSTEMD
|
[Unit]
|
||
|
Description=%p
|
||
|
|
||
|
# Requirements
|
||
|
Requires=docker.service
|
||
|
|
||
|
# Dependency ordering
|
||
|
After=docker.service
|
||
|
|
||
|
[Service]
|
||
|
Restart=always
|
||
|
RestartSec=20
|
||
|
TimeoutStartSec=0
|
||
|
ExecStartPre=-/usr/bin/docker kill %p
|
||
|
ExecStartPre=-/usr/bin/docker rm %p
|
||
|
ExecStart=/usr/bin/docker run \
|
||
|
--rm \
|
||
|
--name rsyslog \
|
||
|
-v /data/runtime/dev:/dev \
|
||
|
-v /data/runtime/log:/var/log \
|
||
|
pierreozoux/rsyslog
|
||
|
ExecReload=/usr/bin/docker restart %p
|
||
|
ExecStop=/usr/bin/docker stop %p
|
||
|
|
||
|
[Install]
|
||
|
WantedBy=multi-user.target
|
||
|
|