-
Notifications
You must be signed in to change notification settings - Fork 10
/
modulus@.service
25 lines (23 loc) · 1.16 KB
/
modulus@.service
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=compile kernel modules
Requires=network-online.target update-engine.service
After=network-online.target update-engine.service
[Service]
EnvironmentFile=/usr/share/coreos/release
EnvironmentFile=/usr/share/coreos/update.conf
EnvironmentFile=/etc/coreos/update.conf
Environment=MODULUS_BIN_DIR=/opt/modulus
Type=oneshot
RemainAfterExit=yes
ExecStart=-/bin/bash -c "${MODULUS_BIN_DIR}/modulus download $(echo %i | tr '-' ' ')"
ExecStart=-/bin/bash -c "${MODULUS_BIN_DIR}/modulus install $(echo %i | tr '-' ' ')"
ExecStart=/bin/bash -c "${MODULUS_BIN_DIR}/modulus compile $(echo %i | tr '-' ' ')"
ExecStart=/bin/bash -c "${MODULUS_BIN_DIR}/modulus install $(echo %i | tr '-' ' ')"
ExecStartPost=-/bin/bash -c "${MODULUS_BIN_DIR}/modulus upload $(echo %i | tr '-' ' ')"
ExecStop=-/bin/bash -c "${MODULUS_BIN_DIR}/modulus -c download $(echo %i | tr '-' ' ')"
ExecStop=-/bin/bash -c "${MODULUS_BIN_DIR}/modulus -c install $(echo %i | tr '-' ' ')"
ExecStop=/bin/bash -c "${MODULUS_BIN_DIR}/modulus -cu compile $(echo %i | tr '-' ' ')"
ExecStop=/bin/bash -c "${MODULUS_BIN_DIR}/modulus install $(echo %i | tr '-' ' ')"
TimeoutStopSec=infinity
[Install]
WantedBy=multi-user.target