forked from kmods-via-containers/kmods-via-containers
-
Notifications
You must be signed in to change notification settings - Fork 0
25 lines (23 loc) · 844 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
[Unit]
Description=Kmods Via Containers - %i
# Start after the network is up
Wants=network-online.target
After=network-online.target
# Also after docker.service (no effect on systems without docker)
After=docker.service
# Before kubelet.service (no effect on systems without kubernetes)
Before=kubelet.service
# But before users are allowed to login
Before=systemd-user-sessions.service
[Service]
Type=oneshot
TimeoutStartSec=25m
RemainAfterExit=true
# Use bash to workaround https://github.com/coreos/rpm-ostree/issues/1936
ExecStartPre=/usr/bin/bash -c "kmods-via-containers build %i %v"
ExecStart=/usr/bin/bash -c "kmods-via-containers load %i %v"
ExecReload=/usr/bin/bash -c "kmods-via-containers reload %i %v"
ExecStop=/usr/bin/bash -c "kmods-via-containers unload %i %v"
StandardOutput=journal+console
[Install]
WantedBy=default.target