Files
docker-configs/docker-services-shutdown.service
2025-07-29 00:00:01 -05:00

17 lines
377 B
Desktop File

[Unit]
Description=Gracefully shutdown Docker services before system halt/reboot
DefaultDependencies=false
Before=shutdown.target reboot.target halt.target
Requires=docker.service
[Service]
Type=oneshot
RemainAfterExit=true
ExecStart=/bin/true
ExecStop=/home/will/docker/shutdown_docker_services.sh
TimeoutStopSec=300
User=will
Group=will
[Install]
WantedBy=multi-user.target