Restore tty plugin after tty refactor

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
Joachim Wiberg
2021-04-15 09:02:28 +02:00
parent 4f40b65f0c
commit eaeddc36c2
2 changed files with 26 additions and 12 deletions
+10
View File
@@ -412,6 +412,16 @@ static int service_start(svc_t *svc)
return 1;
}
if (svc_is_tty(svc)) {
char *dev = tty_canonicalize(svc->dev);
if (!dev || !tty_exists(dev)) {
_d("TTY %s missing or invalid, halting service.", svc->dev);
svc_missing(svc);
return 1;
}
}
if (svc_is_sysv(svc))
logit(LOG_CONSOLE | LOG_NOTICE, "Calling '%s start' ...", svc->cmd);