diff options
author | INSUN PYO <insun.pyo@samsung.com> | 2020-10-08 14:19:57 +0900 |
---|---|---|
committer | INSUN PYO <insun.pyo@samsung.com> | 2020-10-08 16:40:16 +0900 |
commit | 159e89d5f49880cdcc751411eaa9ba29e6dee845 (patch) | |
tree | af1a239f8f123cc7e4670a4e74ee4f82f90bb24d /packaging | |
parent | 45da5f3fe133bb17a53282c0b1b7e2f9b1f3a75a (diff) | |
download | buxton2-159e89d5f49880cdcc751411eaa9ba29e6dee845.tar.gz buxton2-159e89d5f49880cdcc751411eaa9ba29e6dee845.tar.bz2 buxton2-159e89d5f49880cdcc751411eaa9ba29e6dee845.zip |
Add Requires=buxton2.socket dependency to buxton2.service
In emergency mode, buxton2.service runs without buxton2.socket.
This patch prevents buxton2.service from running when buxton2.socket is not running.
In emergency mode, systemd does not start units with an implicit 'Requires=sysinit.target' dependency.
Because buxton2.socket does not have a 'DefaultDependency=no', it implicitly has 'Requires=sysinit.target'.
(Refer: https://www.freedesktop.org/software/systemd/man/systemd.socket.html)
Change-Id: I5ed9765b404012a4bb6036e7779f9c66d5ac5571
Diffstat (limited to 'packaging')
-rw-r--r-- | packaging/buxton2.service | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/packaging/buxton2.service b/packaging/buxton2.service index 040a7ac..a02b166 100644 --- a/packaging/buxton2.service +++ b/packaging/buxton2.service @@ -1,6 +1,7 @@ [Unit] Description=Buxton2 Configuration Service DefaultDependencies=no +Requires=buxton2.socket After=systemd-tmpfiles-setup.service cynara.socket dbus.socket [Service] |