summaryrefslogtreecommitdiffstats
path: root/rog/etc/systemd/system/local.service
blob: be015f69b1434fb97528f9561ae419d08eebfaf1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
[Unit]
Description=Run local commands after boot
ConditionFileIsExecutable=/usr/local/bin/local.sh
After=multi-user.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