HALF ECHO LEARN / REFERENCE COLLECTION

v262.2

test/integration-tests/TEST-52-HONORFIRSTSHUTDOWN/TEST-52-HONORFIRSTSHUTDOWN.units/test-honor-first-shutdown.service

Git blob: 687d7491564b4b2538b2e8fdf1892782fbb1e48f

Lines 1–13 of 13

# SPDX-License-Identifier: LGPL-2.1-or-later
[Unit]
Description=Honor First Shutdown feature
After=multi-user.target
 
[Service]
ExecStart=/usr/lib/systemd/tests/testdata/TEST-52-HONORFIRSTSHUTDOWN.units/%N.sh
ExecStop=bash -c 'kill -KILL $MAINPID'
FailureAction=reboot
 
[Install]
WantedBy=multi-user.target