blob: 204c9d036d54ffb70823a4b0ffbcc5768d8b3f9c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
[Unit]
Description=Run local commands after boot
ConditionFileIsExecutable=/usr/local/bin/local.sh
After=multi-user.target
[Service]
Type=oneshot
# below is needed otherwise ExecStop would execute right after start and unmount
RemainAfterExit=Yes
ExecStart=/usr/local/bin/local.sh
ExecStop=/usr/local/bin/local-cleanup.sh
[Install]
WantedBy=multi-user.target
|