Logging in LTSP startup
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
LTSP5 |
Won't Fix
|
Wishlist
|
Unassigned |
Bug Description
Hi,
during the upgrade of our complex LTSP environment I was constantly adding debugging echos in some file in the code:
- During /sbin/init-ltsp run
- During /usr/share/
Normally every service creates some logging into a file - some exhaustive like Xorg - some just that they started.
I am sure that most of new user errors/problems could be solved if there was an exhaustive log file like Xorgs log file - even more helpful with markers of the message (like Xorg.logs:
---
[ 16.374] Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
---
It would also be helpful for error analysis - users would have only to upload one file when having problems to ask others for help.
Please implement a /var/log/ltsp.log that is filled from all scripts related to ltsp.
Thanks
Rainer
Related branches
- Alkis Georgopoulos: Disapprove
- Vagrant Cascadian: Needs Fixing
-
Diff: 106 lines (+14/-2)6 files modifiedclient/init-ltsp (+3/-1)
client/share/ltsp/init-ltsp.d/50-swap (+2/-0)
client/share/ltsp/kioskSession (+2/-0)
client/share/ltsp/screen-session.d/XS90-assembleXorgConf (+2/-0)
client/share/ltsp/screen.d/kiosk (+2/-1)
client/share/ltsp/screen_session (+3/-0)
Changed in ltsp: | |
importance: | Undecided → Wishlist |
status: | New → Triaged |
Hi,
here the first patch:
(debian7- i386-clnt) root@controlnod e02:~# diff /sbin/init-ltsp /root/init-ltsp i386-clnt) root@controlnod e02:~#
1a2
> echo "LTSP: $0: Starting..." > /dev/kmsg
28a30
> echo "LTSP: $0: Sourcing $script" > /dev/kmsg
29a32
> echo "LTSP: $0: Sourcing $script finished" > /dev/kmsg
31c34
<
---
> echo "LTSP: $0: Sourcing scripts finished" > /dev/kmsg
38a42
> echo "LTSP: $0: Starting /sbin/init" > /dev/kmsg
(debian7-
With this change we found out that we have to create an empty tftproot/lts.conf - since the boot was delayed for 10 seconds since the file did not exist...
Using grep LTSP /var/log/syslog we could see the runtime of each single script.