ploughshares/systemd/ploughshares-daily-restart....

13 lines
356 B
Desktop File

[Unit]
Description=Daily restart of Ploughshares Docker Compose Stack
Requires=ploughshares-compose.service
After=ploughshares-compose.service
[Service]
Type=oneshot
WorkingDirectory=/opt/ploughshares
Environment=COMPOSE_FILE=docker-compose.yml
ExecStart=/bin/bash -lc '/opt/ploughshares/restart_containers.sh >> /var/log/ploughshares-restart.log 2>&1'