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:
parent
0f4025d035
commit
c1eedacba6
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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]
|
||||
|
|
|
|||
Loading…
Reference in New Issue