blob: b86fb68f4e4d9678deb260614db5ad289e5b35f7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
[Unit]
Description=Run local commands after boot
ConditionFileIsExecutable=/usr/local/bin/local.sh
#After=multi-user.target
After=network.target
Before=gdm.service
[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
|