aboutsummaryrefslogtreecommitdiff
path: root/contrib/systemd/crio-shutdown.service
blob: 5651dd980b2aec0ef19cbd91b0ff2b499a2d2dcb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
[Unit]
Description=Shutdown CRIO containers before shutting down the system
Wants=crio.service
After=crio.service
Documentation=man:crio(8)

[Service]
Type=oneshot
ExecStart=/usr/bin/true
ExecStop=mkdir -p /var/lib/crio; touch /var/lib/crio/crio.shutdown
RemainAfterExit=yes

[Install]
WantedBy=multi-user.target