[systemd-devel] Console screen blanks while long running service executes
Harry Goldschmitt
Harry.Goldschmitt at quantum.com
Wed Aug 12 17:19:39 PDT 2015
I just modified my grub kernel command line to add the consoleblank=0 parameter. That isn't the problem. First consoleblank is the kernel screensaver and according to the documentation it kicks in after 15 minutes by default. What I'm doing for testing is:
1) systemctl set-default foo.target
2) foo.target.wants/foo.service
3) foo.service invokes /mydir/foo.sh
4) /mydir/foo.sh consists of
echo "foo.sh starting to sleep"
logger "foo.sh starting to sleep"
sleep 10
echo "foo.sh after sleep"
logger "foo.sh after sleep"
systemctl isolate multi-user.target
What I see is a few kernel driver start up messages. Then the console screen blanks for about 10 seconds. Then multi-user boot completes. What I'm hoping to see is:
foo.sh starting to sleep
foo.sh after sleep
-----Original Message-----
From: systemd-devel [mailto:systemd-devel-bounces at lists.freedesktop.org] On Behalf Of Tomasz Torcz
Sent: Wednesday, August 12, 2015 12:26 PM
To: systemd-devel at lists.freedesktop.org
Subject: Re: [systemd-devel] Console screen blanks while long running service executes
On Wed, Aug 12, 2015 at 06:41:35PM +0000, Harry Goldschmitt wrote:
> I have a target that runs a service during boot on CentOS 7.1. The
> service takes a minimum of 30 sec. to run and a maximum of 15 min.
> While it's running, the console screen blanks. Before my service runs
> I see the expected roll call of services running with [OK], etc. After
> my service completes, the console comes back to life. My service uses
> echo to output progress messages that show up in the journal. Is there
> a way to keep the console from blanking? >
Put "consoleblank=0" in the kernel command line.
--
Tomasz Torcz "Never underestimate the bandwidth of a station
xmpp: zdzichubg at chrome.pl wagon filled with backup tapes." -- Jim Gray
_______________________________________________
systemd-devel mailing list
systemd-devel at lists.freedesktop.org
https://urldefense.proofpoint.com/v2/url?u=http-3A__lists.freedesktop.org_mailman_listinfo_systemd-2Ddevel&d=BQIGaQ&c=8S5idjlO_n28Ko3lg6lskTMwneSC-WqZ5EBTEEvDlkg&r=naTX-IF7_QKyhqVve7SqbI_X3j-x4BDG1qRD3DBP5SU&m=U0VIxjS1yDAK5lMWm8xgxAd7UGv8CV6Jpj1MkgASCI8&s=8TInZVo_Ej5hIrZnvTp0PuR6KW_arTD2IcCCle4W3f4&e=
----------------------------------------------------------------------
The information contained in this transmission may be confidential. Any disclosure, copying, or further distribution of confidential information is not permitted unless such privilege is explicitly granted in writing by Quantum. Quantum reserves the right to have electronic communications, including email and attachments, sent across its networks filtered through anti virus and spam software programs and retain such messages in order to comply with applicable data security and retention requirements. Quantum is not responsible for the proper and complete transmission of the substance of this communication or for any delay in its receipt.
More information about the systemd-devel
mailing list