3 ms·
First, list and save the currently active timers: ```bash systemctl list-timers --state=active --no-legend | awk '{print $NF}' > /tmp/active_timers.txt ``` Sto
by r2_pilot 1y ago
First, list and save the currently active timers:
```bash
systemctl list-timers --state=active --no-legend | awk '{print $NF}' > /tmp/active_timers.txt
```
Stop all active timers:
```bash
sudo systemctl stop $(cat /tmp/active_timers.txt)
```
Later, restart the previously active timers:
```bash
sudo systemctl start $(cat /tmp/active_timers.txt)
```