diff options
author | Andrew Cady <d@jerkface.net> | 2023-05-22 01:23:42 -0400 |
---|---|---|
committer | Andrew Cady <d@jerkface.net> | 2023-05-22 01:23:42 -0400 |
commit | 684c592ac659de0d934f5c9a47d28348d12e723e (patch) | |
tree | 5e04bf3435c3cdb7a5b43f3c6882a3d979b5e064 /Makefile | |
parent | 5dcbbaeb2c942356f3b9b7dba5e04ec373adfced (diff) |
systemd units
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -5,5 +5,8 @@ ifeq ($(remotes),) | |||
5 | $(error You must put at least one *.json configuration file into <file:///$(config_dir)>). | 5 | $(error You must put at least one *.json configuration file into <file:///$(config_dir)>). |
6 | endif | 6 | endif |
7 | 7 | ||
8 | install: | ||
9 | for remote in $(remotes); do systemctl enable push-btrfs@$$remote.service; systemctl enable --now push-btrfs@$$remote.timer; done | ||
10 | |||
8 | go: | 11 | go: |
9 | for remote in $(remotes); do bash$(if $(verbose), -x) push-btrfs $$remote$(if $(verbose),;, &) done; wait | 12 | for remote in $(remotes); do bash$(if $(verbose), -x) push-btrfs $$remote$(if $(verbose),;, &) done; wait |