From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.sysutils.supervision.general/2295 Path: news.gmane.org!.POSTED!not-for-mail From: DGSJ Newsgroups: gmane.comp.sysutils.supervision.general Subject: cannot set terminal process group Date: Fri, 15 Dec 2017 00:48:16 +0100 Message-ID: <20171214234816.GA536@lucu> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1513291613 15846 195.159.176.226 (14 Dec 2017 22:46:53 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 14 Dec 2017 22:46:53 +0000 (UTC) User-Agent: Mutt/1.8.0 (2017-02-23) To: supervision@list.skarnet.org Original-X-From: supervision-return-1886-gcsg-supervision=m.gmane.org@list.skarnet.org Thu Dec 14 23:46:46 2017 Return-path: Envelope-to: gcsg-supervision@m.gmane.org Original-Received: from alyss.skarnet.org ([95.142.172.232]) by blaine.gmane.org with smtp (Exim 4.84_2) (envelope-from ) id 1ePcH7-0003oG-Rk for gcsg-supervision@m.gmane.org; Thu, 14 Dec 2017 23:46:45 +0100 Original-Received: (qmail 28479 invoked by uid 89); 14 Dec 2017 22:47:19 -0000 Mailing-List: contact supervision-help@list.skarnet.org; run by ezmlm Original-Sender: Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Original-Received: (qmail 28472 invoked from network); 14 Dec 2017 22:47:19 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:subject:message-id:mime-version:content-disposition :content-transfer-encoding:user-agent; bh=+tU7FNN0rWaCbyvm3egXoYYs2l9keHyVNxIRJX3kNW0=; b=X9vPq2oH2vWGYxYToWko/6i7VGVdzAKWmW+DgenIdiJQWvAKTIjFhiHiPpGM3hH23K +CcjmEAPzGy1PJtK72snBCEcPgou1IcReTgDl2Q1SB9jjcWmS/nvnlzNm8IYhUtEuW5N iK5yMB/AICmWm9e1ezh+HmRgXtYldwo2tL43wTVMpLgNUyxlkqmIflfMFWx3t9Sm4Wae qWOhu/3gexvAUW5FHU548ypBcIBQFV8696jI2tbKQi3qRIIipOH77MCN5ODKEUv2T2fX g0N+nYks6pS6T4ub0rdaf32MGYG5Vfw346LQfF/JHUr5cIjxlS9oEwfNWlNcxBOx78jG 0eVQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:mime-version :content-disposition:content-transfer-encoding:user-agent; bh=+tU7FNN0rWaCbyvm3egXoYYs2l9keHyVNxIRJX3kNW0=; b=CggO4mgKSjFZ6vSOFwoV+u32T/CpWcgM7EXiOU2wCJ4E2aTQlKrWmPKLe4HCmoKJiD V8IZGiQFD9RzFvoP/40CWkciIa8Uzx/7d76qGu3MOGVKMQNLzYsHo/xPNFL5okWnLQ4P /C8L5tH+3VYYu917oeutFCUk96y5dJ8AaBbpd+5UBfscDVBFqlQrb4DWNFkjJbuJHrwL wKEkBJotzNsThngIKjj/VH6Hd/78BtpWZ/GTjBDjX02fTD9bwbvlYUxKqfHzmrZ5oTgy RX7uHa7wdLb0bVHW2zTaGXXf5tg0uFF4W+mzY2VMPkfIzUv/A9gxlKwA+LtHcKAB/PWi IszQ== X-Gm-Message-State: AKGB3mLHtCAOeEGX7ZPuivZx7UXxfMyU5LudCWEbrbbf8Qp1l7cuxs9A TrC6r80ELRDC31aMkLzrJuaKlA== X-Google-Smtp-Source: ACJfBosoZK7hMElVc8c8bvYgjymIHOHW13RXqLTTIQ4dco8Tee6jILvxblOWbGYgNeqc5ap2Y0wWBQ== X-Received: by 10.80.245.237 with SMTP id x42mr14384396edm.80.1513291611771; Thu, 14 Dec 2017 14:46:51 -0800 (PST) Content-Disposition: inline Xref: news.gmane.org gmane.comp.sysutils.supervision.general:2295 Archived-At: Hello, I didn't pay too much attention to this message displayed after login, mainly because everything seems to go well enough. login: Password: -bash: cannot set terminal process group (193): Inappropriate ioctl for device -bash: no job control in this shell [ ~ ]# Well, Crtl+C doesn't work, but until now I could cope with it, but now that I'm progressing in the migration I would like to fix it. I'm using agetty for the ./run file of the service. /etc/sv/getty-3/run #!/bin/sh exec /sbin/agetty 38400 tty3 linux And this is the output of ps -fx: 1 ? Ss 0:00 runit 192 ? Ss 0:00 runsvdir -P /service log:................... 193 ? Ss 0:00 \_ runsv getty-3 201 ? S 0:00 | \_ /bin/bash ./run 215 ? S 0:00 | | \_ /usr/local/bin/svlogd -tt /tmp/agetty3 224 ? S 0:00 | \_ /bin/login -- 285 ? S 0:00 | \_ -bash It seems that bash is expecting PID 193 to be a terminal, but it finds runsv instead (maybe due to the effect of exec). I could change agetty to getty in order for managing the terminal, but before I would like to understand the problem and a possible solution. What is then the reason for that warning and what could be the solution? Thank you in advance for your cooperation -- ------------------------- Daniel Gutiérrez San José