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