17 lines
390 B
SYSTEMD
17 lines
390 B
SYSTEMD
|
[Unit]
|
||
|
Description=DDNS updater (Compose Service)
|
||
|
Requires=docker.service
|
||
|
After=docker.service
|
||
|
|
||
|
[Service]
|
||
|
WorkingDirectory=/opt/ddns-updater
|
||
|
ExecStart=/usr/bin/docker-compose --project-name ddns-updater up
|
||
|
ExecStop=/usr/bin/docker-compose --project-name ddns-updater down
|
||
|
TimeoutStartSec=0
|
||
|
Restart=on-failure
|
||
|
StartLimitIntervalSec=60
|
||
|
StartLimitBurst=3
|
||
|
|
||
|
[Install]
|
||
|
WantedBy=multi-user.target
|