[update] |(1)| dwc is now stopped by its users (sats-install/sats-update)
This commit is contained in:
parent
dfc8fb3da1
commit
8b6a075edc
|
@ -1,9 +1,8 @@
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=[::SATS::] Dynamic Wireless Credentials (%i)
|
Description=[::SATS::] Dynamic Wireless Credentials (%i)
|
||||||
Wants=network.target
|
Requires=network-online.target
|
||||||
Before=network.target
|
|
||||||
BindsTo=sys-subsystem-net-devices-%i.device
|
BindsTo=sys-subsystem-net-devices-%i.device
|
||||||
After=sys-subsystem-net-devices-%i.device
|
After=sys-subsystem-net-devices-%i.device network-online.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=oneshot
|
Type=oneshot
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=[::SATS::] Install Process
|
Description=[::SATS::] Install Process
|
||||||
Requires=sats-dwc@wlan0.service sats-boot.service network-online.target
|
Requires=sats-boot.service sats-dwc@wlan0.service
|
||||||
After=sats-boot.service sats-dwc@wlan0.service
|
After=sats-boot.service sats-dwc@wlan0.service
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
|
@ -9,3 +9,4 @@ RemainAfterExit=yes
|
||||||
User=pi
|
User=pi
|
||||||
Group=pi
|
Group=pi
|
||||||
ExecStart=/bin/bash /service/sats-install
|
ExecStart=/bin/bash /service/sats-install
|
||||||
|
ExecStartPost=/usr/bin/sudo systemctl stop sats-dwc@wlan0.service
|
|
@ -6,4 +6,4 @@ if [ ! -e /target/sync ]; then
|
||||||
fi;
|
fi;
|
||||||
|
|
||||||
# [1] Propagate script to UPDATE
|
# [1] Propagate script to UPDATE
|
||||||
/bin/bash /home/sats/satsd/source/update 2>> /home/sats/satsd/log/update.log >> /home/sats/satsd/log/update.log;
|
sudo -u sats /bin/bash /home/sats/satsd/source/update | sudo -u sats tee -a /home/sats/satsd/log/update.log > /dev/null;
|
||||||
|
|
|
@ -1,11 +1,12 @@
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=[::SATS::] Update Process
|
Description=[::SATS::] Update Process
|
||||||
Requires=sats-dwc@wlan0.service network-online.target
|
Requires=sats-dwc@wlan0.service
|
||||||
After=sats-dwc@wlan0.service
|
After=sats-dwc@wlan0.service
|
||||||
Requisite=sats-sync.service
|
Requisite=sats-sync.service
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=oneshot
|
Type=oneshot
|
||||||
User=sats
|
User=pi
|
||||||
Group=sats
|
Group=pi
|
||||||
ExecStart=/bin/bash /service/sats-update
|
ExecStart=/bin/bash /service/sats-update
|
||||||
|
ExecStartPost=/usr/bin/sudo systemctl stop sats-dwc@wlan0.service
|
Loading…
Reference in New Issue