socket-*.service: Add condition for required configuration file

Do not start socket services if no configuration file is available.

BugzID: 63562

Signed-off-by: Ramon Moesching <ramon.moesching@netmodule.com>
This commit is contained in:
Ramon Moesching 2020-06-12 17:55:01 +02:00
parent 0f4025d035
commit c1eedacba6
4 changed files with 4 additions and 1 deletions

View File

@ -2,6 +2,7 @@
Description=Bind kline socket with pseudo tty based on socat
Requires=um-service-config.service user-module.target
After=um-service-config.service user-module.target
ConditionPathExists=/etc/user-module/network.conf
[Service]
Type=simple

View File

@ -2,6 +2,7 @@
Description=Bind lin socket with pseudo tty based on socat
Requires=um-service-config.service user-module.target
After=um-service-config.service user-module.target
ConditionPathExists=/etc/user-module/network.conf
[Service]
Type=simple

View File

@ -2,7 +2,7 @@
Description=Bind uart socket with pseudo tty based on socat
Requires=um-service-config.service user-module.target
After=um-service-config.service user-module.target
ConditionPathExists=/etc/user-module/network.conf
[Service]
Type=simple

View File

@ -2,6 +2,7 @@
Description=Check whether user module is present and configure user space services
Requires=um-service-config.service user-module.target
After=um-service-config.service user-module.target
ConditionPathExists=/etc/user-module/network.conf
[Service]