[Unit] Description=On resume actions After=sleep.target After=network-online.target Wants=network-online.target [Service] Type=oneshot ExecStartPre=sleep 3 ExecStart=/usr/bin/systemctl restart ipsec [Install] WantedBy=sleep.target