diff options
author | Lars Wirzenius <liw@liw.fi> | 2018-02-07 18:54:13 +0200 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2018-02-07 18:54:13 +0200 |
commit | ec7afcf06a915eb0e1c44240d4d274bcefd51d23 (patch) | |
tree | d009e6a764cd8d6a69efe1cd1fa643b0482e819f | |
parent | 4b6fd81e121935f60f29b8314bc7c44726bf6fd7 (diff) | |
download | ick2-ec7afcf06a915eb0e1c44240d4d274bcefd51d23.tar.gz |
Change: make all .service units be conditinal on config
If the config file is missing, the unit won't start.
-rw-r--r-- | ick-blob-service.service (renamed from blob-service.service) | 3 | ||||
-rw-r--r-- | ick-controller.service (renamed from ick2.service) | 5 | ||||
-rw-r--r-- | ick-worker.service (renamed from ick2-worker-manager.service) | 3 |
3 files changed, 7 insertions, 4 deletions
diff --git a/blob-service.service b/ick-blob-service.service index 8f2f046..2bfc6c1 100644 --- a/blob-service.service +++ b/ick-blob-service.service @@ -13,8 +13,9 @@ # along with this program. If not, see <http://www.gnu.org/licenses/>. [Unit] -Description=ick2 blob service +Description=ick blob service After=network.target +ConditionPathExists=/etc/ick/blob-service.yaml [Service] Type=simple diff --git a/ick2.service b/ick-controller.service index 57fd209..7a58da9 100644 --- a/ick2.service +++ b/ick-controller.service @@ -1,4 +1,4 @@ -# Copyright 2017 Lars Wirzenius +# Copyright 2017-2018 Lars Wirzenius # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation, either version 3 of the License, or @@ -13,8 +13,9 @@ # along with this program. If not, see <http://www.gnu.org/licenses/>. [Unit] -Description=ick2 controller +Description=ick controller After=network.target +ConditionPathExists=/etc/ick/controller.yaml [Service] Type=simple diff --git a/ick2-worker-manager.service b/ick-worker.service index 18c08f3..d2d2416 100644 --- a/ick2-worker-manager.service +++ b/ick-worker.service @@ -13,8 +13,9 @@ # along with this program. If not, see <http://www.gnu.org/licenses/>. [Unit] -Description=ick2 worker manager +Description=ick worker After=network.target +ConditionPathExists=/etc/ick/worker.yaml [Service] Type=simple |