You are not logged in.

#1 2012-11-14 22:23:33

HalJordan
Member
Registered: 2010-11-17
Posts: 64

systemctl status <insert service file here> works, but hangs when done

Has anyone else had this problem?

I thought it was just an issue when i ssh'd from work, but it happens at home too.

 hal_j@oa ~ % systemctl status kdm
kdm.service - K Display Manager
          Loaded: loaded (/usr/lib/systemd/system/kdm.service; enabled)
          Active: active (running) since Sat, 2012-11-10 17:48:49 CST; 3 days ago
        Main PID: 370 (kdm)
          CGroup: name=systemd:/system/kdm.service
                   370 /usr/bin/kdm -nodaemon
                   408 /usr/bin/X -br -novtswitch -quiet :0 vt7 -nolisten tcp -auth /var/run/xauth/A:0-3uVJBb

This shows, but then hangs like that till I ctrl-c out. Even then it takes several moments before it lets go, and i get my shell back. No other subcommand for systemctl does this...

AMDFX4100 quad with 8gb of ram, and I rarely uses so much as half of it unless folding@home is on. Which atm it's not so I can get this fixed.

Any Ideas?

Offline

#2 2013-04-11 23:28:57

frony0
Member
From: United Kingdom
Registered: 2011-05-01
Posts: 44

Re: systemctl status <insert service file here> works, but hangs when done

bump...


Make it idiot-proof, and someone will breed a better idiot.
-- Oliver Elphick

Offline

#3 2013-04-11 23:59:38

HalJordan
Member
Registered: 2010-11-17
Posts: 64

Re: systemctl status <insert service file here> works, but hangs when done

I'm not marking this as solved, because as of yet, all I can do to fix it amounts to throwing a bandaid over a gunshot wound. I don't claim to be an all knowing expert, but bumping my machine will likely cause more errors, not fix that one. Unless you're trying to bump the thread, providing absolutely _nothing_ of use. That is both wasteful, and asinine. You could, at the very least, describe what you are running into or show what versions you are using and still seeing the problem. All forums should block posts if they contain fewer than 5 words.

As per my temporary cover up, the main issue is that journald is not rotating the logs like it's supposed to. Once they reach a few hundred megs each it takes awhile to comb through them all, thus causing my(our?) lag. I have a cronjob set to rotate out the journald's log directory, placing a datestamp at the end, then it restarts journald so it recreates the directory and goes on about it's business. If I need to look at past logs that have been rotated out, journalctl has an appropriate option for looking in files not inside the default directory. I have set the proper vars in journald.conf, below is a copy. Please tell me it's something simple that I'm missing, but journald still refuses to do the log rotation itself. The rotated out directories typically contain files way larger than 50M, which exceeds both the *MaxUse and *MaxFileSize directives.

cat /etc/systemd/journald.conf     
#  This file is part of systemd.
#
#  systemd is free software; you can redistribute it and/or modify it
#  under the terms of the GNU Lesser General Public License as published by
#  the Free Software Foundation; either version 2.1 of the License, or
#  (at your option) any later version.
#
# See journald.conf(5) for details

[Journal]
#Storage=persistent
Compress=yes
#Seal=no
SplitMode=login
SyncIntervalSec=5m
#RateLimitInterval=10s
#RateLimitBurst=200
SystemMaxUse= 50M 
#SystemKeepFree=100G
SystemMaxFileSize=10M
RuntimeMaxUse=50M
#RuntimeKeepFree=100G
RuntimeMaxFileSize=10M
#MaxRetentionSec=3week
#MaxFileSec=2week
#ForwardToSyslog=yes
#ForwardToKMsg=no
#ForwardToConsole=no
#TTYPath=/dev/console
#MaxLevelStore=debug
#MaxLevelSyslog=debug
#MaxLevelKMsg=notice
#MaxLevelConsole=info

---
Build a man a fire, and he's warm for a night,
   But set a man on fire, and he's warm for the rest of his life.

Last edited by HalJordan (2013-04-12 00:00:25)

Offline

#4 2013-04-12 01:42:11

frony0
Member
From: United Kingdom
Registered: 2011-05-01
Posts: 44

Re: systemctl status <insert service file here> works, but hangs when done

Bingo! Thanks for the tip, that was it. Deleted all my journal logfiles (4GB?!) and restarted the service, now everything's all snappy again.


Make it idiot-proof, and someone will breed a better idiot.
-- Oliver Elphick

Offline

Board footer

Powered by FluxBB