Systemd and time synchronisation? [SOLVED]

Recently I changed permanently to systemd - however I have noticed
that the system clock is out by some minutes just after I have booted
up and see for example:
[mike@lapmike3 ~]$ chronyc tracking
Reference ID    : 178.32.55.58 (gateway.omega.org.uk)
Stratum         : 3
Ref time (UTC)  : Tue Sep 11 10:03:20 2012
System time     : 158.888610840 seconds fast of NTP time
Frequency       : 5.454 ppm fast
Residual freq   : -1.577 ppm
Skew            : 13.260 ppm
Root delay      : 0.062475 seconds
Root dispersion : 0.029119 seconds
I would not mind a second or two out - but 158 seconds is not
acceptable - and if I reboot then the clock is immediately out by the
same amount until it eventually re-syncs after quite a long time (10s
of minutes!)
I thought I would check the hardware clock but :
[root@lapmike3 ~]# hwclock -r
hwclock: Cannot access the Hardware Clock via any known method.
hwclock: Use the --debug option to see the details of our search for
an access method.
I had originally set up chrony which does eventually after some time
get the system clock back in sync - I do have dumponexit in my
/etc/chrony.conf but presume somewhere along the way in the transition
from iniscripts there is a configuration error?
I have in my /etc/adjtime:
0.000000 0 0.000000
0
UTC
I am running KDE - and until the system clock is re-synced it is quite
a bit off - this presumable also means that mail time stamps will be
wrong until the clock resets properly -
I have looked at the chrony and systemd arch wiki entries but I can't
find a way to get this sorted out - can anyone help out?
Thanks
Last edited by mcloaked (2012-09-12 08:51:58)

brebs wrote:
mcloaked wrote:hwclock: Cannot access the Hardware Clock via any known method.
Don't you have /dev/rtc?
$ ll /dev/rtc*
lrwxrwxrwx 1 root root 4 Sep 11 11:44 /dev/rtc -> rtc0
crw-r--r-- 1 root root 254, 0 Sep 11 11:44 /dev/rtc0
Haven't you tried the --debug option, as hwclock stated to you?
Also worth trying:
strace -e trace=file hwclock -r
OK I did a lot on this last night - firstly when chronyd is running then hwclock -r won't work - BUT if "systemctl stop chrony" then "hwclock -r" will work fine and if necessary the hardware clock can be set or rewritten using standard cli commands.
Secondly it "is" possible to reset the hardware clock whilst chronyd is running by using chronyc from the command line - once started, then from the chronyc prompt you can reset the hardware clock, but first the chrony password must be given - (i.e. the password, say "mypass" as set into the chrony keys file by using the command "password mypass") then within the chronyc prompt you can use the "trimrtc" command which will write the current system time into the RTC - if chronyd has been running for a while then it will have properly synced the system clock from the ntp servers.
Once this was done then on bootup the system clock was initially set to the (now near correct) hardware clock - and would then re-synchronise against the ntp servers within a few minutes.  I now see a difference of the system clock after synchronisation of around a tenth of a microsecond compared to ntp time - and chronyd should (in principle) periodically rest the hardware clock.
So this is solved.
Last edited by mcloaked (2012-09-12 09:04:08)

Similar Messages

  • Systemd and nfs exports [solved]

    I recently switched my server over to systemd and now I cannot connect to the NFS share that it is exporting.
    Here is the entry in the /etc/fstab on the server:
    /dev/sdb1 /media/media ext4 defaults,noatime 0 1
    /media/media /nfs4exports/media none rw,bind 0 0
    Here is the /etc/systemd/system/media-media.mount :
    [Unit]
    Description=media
    Wants=network.target rpc-statd.service
    After=network.target rpc-statd.service
    [Mount]
    What=/media/media
    Where=/nfs4exports/media
    Type=nfs
    StandardOutput=syslog
    StandardError=syslog
    When I connect it from my workstation, the mount command just hangs:
    # mount -t nfs mars:/media /media/media
    Help
    Last edited by graysky (2012-05-10 17:01:08)

    The solution is NOT to create this file at all.  Apparently, exports from the server do not require them.  If I remove it and reboot the server, I am able to connect from my workstation with no issues.  For reference:
    $ ls -l /etc/systemd/system/multi-user.target.wants/
    total 0
    lrwxrwxrwx 1 root root 40 May 10 10:58 cpupower.service -> /usr/lib/systemd/system/cpupower.service
    lrwxrwxrwx 1 root root 38 May 10 10:58 cronie.service -> /usr/lib/systemd/system/cronie.service
    lrwxrwxrwx 1 root root 40 May 10 12:10 exportfs.service -> /usr/lib/systemd/system/exportfs.service
    lrwxrwxrwx 1 root root 42 May 10 10:59 lm_sensors.service -> /usr/lib/systemd/system/lm_sensors.service
    lrwxrwxrwx 1 root root 35 Apr 30 15:15 network.service -> /etc/systemd/system/network.service
    lrwxrwxrwx 1 root root 36 May 10 10:59 ntpd.service -> /usr/lib/systemd/system/ntpd.service
    lrwxrwxrwx 1 root root 36 May 10 11:33 rc-local.service -> /etc/systemd/system/rc-local.service
    lrwxrwxrwx 1 root root 40 May 2 22:37 remote-fs.target -> /usr/lib/systemd/system/remote-fs.target
    lrwxrwxrwx 1 root root 39 May 10 10:58 rpcbind.service -> /usr/lib/systemd/system/rpcbind.service
    lrwxrwxrwx 1 root root 42 May 10 12:10 rpc-mountd.service -> /usr/lib/systemd/system/rpc-mountd.service
    lrwxrwxrwx 1 root root 41 May 10 12:10 rpc-statd.service -> /usr/lib/systemd/system/rpc-statd.service
    lrwxrwxrwx 1 root root 43 May 10 10:58 sshdgenkeys.service -> /usr/lib/systemd/system/sshdgenkeys.service
    lrwxrwxrwx 1 root root 36 May 10 10:58 sshd.service -> /usr/lib/systemd/system/sshd.service
    lrwxrwxrwx 1 root root 41 May 10 11:06 syslog-ng.service -> /usr/lib/systemd/system/syslog-ng.service
    lrwxrwxrwx 1 root root 35 May 10 10:57 ufw.service -> /usr/lib/systemd/system/ufw.service

  • Systemd and various services [SOLVED]

    Is there a place here is the forums or somewhere else that I can find information about starting services with systemd?
    So far Google is as empty handed as I am
    I have systemd running just fine, but aside from some of the directions to start apache and a few other services I see
    no instructions on how to create/run other "custom" services.
    The explanation in the wiki on this topic are rather succinct and I find myself having to start services like iptables with (systemctl start iptables)
    that is OK but I should be able to use: systemctl enable iptables.service.
    I have copied the httpd.service file and modified it to run iptables but so far it's a no go.
    So if there are other instructions available somewhere else I'll be glad to hear from it.
    Thanks.
    R,.
    Last edited by ralvez (2012-09-06 23:39:49)

    You have to issue "systemctl daemon-reload" before you can enable a service, IIRC.
    Out of curiosity: Why do you use the rc.d scripts in the service file? That seems like a bit of a roundabout way to me. In case you've missed it (I know I've missed these things often enough), the iptables packages ships its own service file in /usr/lib/systemd/system/iptables.service:
    [Unit]
    Description=Packet Filtering Framework
    [Service]
    Type=oneshot
    ExecStart=/usr/sbin/iptables-restore /etc/iptables/iptables.rules
    ExecStop=/usr/lib/systemd/scripts/iptables-flush
    RemainAfterExit=yes
    [Install]
    WantedBy=multi-user.target
    I'm just mentioning it because I remember that Type=forking should be the last ExecType to try. Systemd works best if the programs started by services are just simple processes that don't involve any forking at all.
    Edit: I should probably mentioned where I read that. Systemd actually has its own entry on the freedesktop.org wiki—with links to some impressive amounts of documentation. I find it hard to believe you haven't stumpled upon it in your search for documentation.
    Edit2: Crond (which, if you use the one from the repos, is actually cronie) has its own service file too—/usr/lib/systemd/system/crond.service (or, more directly, cronie.service).
    Last edited by Runiq (2012-09-01 17:39:27)

  • [SOLVED]Problem with systemd and awesome wm

    Hello,
    I recently have installed systemd and I have enabled slim.service, but after logging in throught slim I cannot run any programs in my awesome wm. Well, actually I can, but only a few seconds after login. If I run xterm and then try to run a program throught it I get messages "no protocol specified" and "cannot open display :0.0". If I quit awesome/X and login again(without reboot) all works just fine. Could you please help me to solve this problem? Thank you in advance.
    Edit: found this in the Xorg.0.log:
    [ 164.412] (==) Log file: "/var/log/Xorg.0.log", Time: Fri Jun 15 11:47:28 2012
    [ 164.412] (==) Using config directory: "/etc/X11/xorg.conf.d"
    [ 164.413] (==) No Layout section. Using the first Screen section.
    [ 164.413] (==) No screen section available. Using defaults.
    [ 164.413] (**) |-->Screen "Default Screen Section" (0)
    [ 164.413] (**) | |-->Monitor "<default monitor>"
    [ 164.413] (==) No monitor specified for screen "Default Screen Section".
    Using a default monitor configuration.
    Last edited by ArtemGuzhva (2012-06-18 07:46:12)

    Okay, it is working fine now I have uninstalled initscripts and installed sysvcompat.
    NOTE: before uninstalling initscripts and sysvinit, reboot your computer with init=/bin/systemd in your kernel cmdline, because you will not be able to shutdown properly due to the lack of inittab.
    Last edited by ArtemGuzhva (2012-06-18 07:49:12)

  • [SOLVED]systemd and make a camera visible GUI-wise in your filemanager

    After reading a lot about systemd in the wiki and in this forum I understand there are different opionons about systemd. Anyway, I have a adapted all the changes to rc.conf leaving out only a few daemons to start there. So why not give systemd a try? If you dont want to read the full posting I finally got it to work, basically by reading carefully and checking the suggested tests in the systemd wiki. (loginctl)
    As suggested by the wiki, I tried the systemd yesterday. Enabled via systemctl some services to "replace" my rc.conf daemons. I got what I thought everything to work, including autologin directly to my Xfce4 desktop. Everything except the digital camera.
    When starting Arch traditionally via initscripts I immediately can see the camera in the filemanager (Nautilus) when the camera is attached via USB.
    Some minutes later, after adding "init=/usr/lib/systemd/systemd" to the APPEND line in Syslinux and rebooting, my machine reboots
    fine.But when connecting the camera again it is not visible graphically.
    The camera is there because when using gphoto2 (the commandline) as root I can transfer pictures etc.
    Even if I am no happy CLI user I can handle it when necessary. Handling pictures a graphical view of them is much easier...
    As the wiki about systemd says one can try it out. I have not removed anything from the system and when starting Arch again, the initscript way, I can see the camera again in my filemanager, gthumb works again and pictures can be transferred to my machine.
    In the wiki again, this time about digital cameras
    Permission issues
    Camera devices should be granted permission using ACLs. For this to work, users need to have consolekit or systemd running and the user session must be registered with them accordingly.
    Check this using /usr/bin/ck-list-sessions to verify a value of "TRUE" should be returned for both the "active" and "is-local" fields:
    $ ck-list-sessions | grep TRUE
    active = TRUE
    is-local = TRUE
    ACL=Atlantic Container Line is what first comes into my mind. I have had some connections to transport business...I admit I had to google it to find the correct interpretation of this mumbo-jumbo.
    The wiki also gives a "hint", if this is not working try to use the obsolete camera group and edit some udev rules.
    Should not be necessary when it has worked before systemd and earlier experiences
    But what is this about "Permission issues"?  Here is my listings relative the wiki hints. All seems OK.. or why the heck are there two sessions??
    [leif@krasaki ~]$ ck-list-sessions | grep TRUE
    is-local = TRUE
    active = TRUE
    is-local = TRUE
    [leif@krasaki ~]$ ck-list-sessions
    Session1:
    unix-user = '1000'
    realname = '(null)'
    seat = 'Seat1'
    session-type = ''
    active = FALSE
    x11-display = ''
    x11-display-device = ''
    display-device = '/dev/tty1'
    remote-host-name = ''
    is-local = TRUE
    on-since = '2012-10-24T07:12:56.499847Z'
    login-session-id = '1'
    idle-since-hint = '2012-10-24T07:13:26.994037Z'
    Session2:
    unix-user = '1000'
    realname = '(null)'
    seat = 'Seat1'
    session-type = ''
    active = TRUE
    x11-display = ':0'
    x11-display-device = '/dev/tty7'
    display-device = '/dev/tty1'
    remote-host-name = ''
    is-local = TRUE
    on-since = '2012-10-24T07:13:02.361157Z'
    login-session-id = '1'
    [leif@krasaki ~]$
    As one can see, the ACTIVE values are here as the wiki says. But no camera. Those values are the same, wheter which way the machine is started. But 2 sessions??
    Further reading in the systemd wiki article and consolekit vs systemd.logind gives a clue.
    From the wiki:
    In order to check the status of your user session, you can use loginctl. To see if your user session is properly set up, check if the following command contains Active=yes. All polkit actions like suspending the system or mounting external drives with Udisks should then work automatically.
    So when started via systemd and running logintctl, it gives this surprising result. Does not matter wheter as normal user, nor as root....
    [leif@krasaki ~]$ loginctl
    SESSION UID USER SEAT
    1 1000 leif seat0
    1 sessions listed.
    [leif@krasaki ~]$ loginctl show-session 1
    Id=1
    Timestamp=Wed, 24 Oct 2012 10:57:03 +0200
    TimestampMonotonic=20040019
    DefaultControlGroup=name=systemd:/user/leif/1
    VTNr=1
    TTY=tty1
    Remote=no
    Service=login
    Leader=315
    Audit=1
    Type=tty
    Class=user
    Active=no
    State=online
    KillProcesses=no
    IdleHint=yes
    IdleSinceHint=1351069009642296
    IdleSinceHintMonotonic=6664433
    Name=leif
    [leif@krasaki ~]$
    Surprising? Should it not have been Active=Yes? So something is wrong in my settings although it had worked "before" starting using systemd..
    OK, so far. Lost? Not yet. Double check again everything and I found the culprit, my  ~/.bash_profile which had worked before seemed a bit different to what is suggested in the wiki. The old one, actually started 2 sessions, as also could be seen here above checking ck-list-sessions. That was the problem
    Using a fresh edited ~/.bash_profile as suggested here, the camera is visible graphically
    Finally, just for fun, start again the old initscipt way. Enabling daemon and so on. Still 2 sessions going on....Here it was the "/.xinitrc, which also had some old fashions and I removed the ck-launch-session from the exec line. So even here, now only 1 session..
    Anyway, now the camera is visible, both starting with initscripts, naturally also some daemons active in rc.conf and by starting with systemd.
    I rest my case and it seems systemd works with everything on my machine which is just a normal desktop used by an old man.
    Thanks for reading...

    Solved now! Boot times are as fast as posssible on my HDD I think. Only thing after uninstalling initscripst and initscripts-systemd was that locale was not set inspite of a correct /etc/locale.conf. I had to make /etc/profile.d/locale.sh with this content;
    if [ -s /etc/locale.conf ]; then
    . /etc/locale.conf
    fi
    export LANG LANGUAGE LC_CTYPE LC_NUMERIC LC_TIME LC_COLLATE
    export LC_MONETARY LC_MESSAGES LC_PAPER LC_NAME LC_ADDRESS
    export LC_TELEPHONE LC_MEASUREMENT LC_IDENTIFICATION

  • [SOLVED] Systemd and tmpfiles? Conflicting /tmp?

    I've got this error in journal;
    systemd-tmpfile[247]: Two or more conflicting lines for /tmp configured, ignoring.
    This is from a leftover from arch initscripts, /usr/lib/tmpfiles.d/arch.conf shich is doubled by systemd's, /usr/lib/tmpfiles.d/x11.conf (almost).
    arch.conf;
    D /tmp 1777 root root 10d
    d /run/daemons 0755 root root -
    d /tmp/.X11-unix 1777 root root 10d
    d /tmp/.ICE-unix 1777 root root 10d
    d /tmp/.XIM-unix 1777 root root 10d
    d /tmp/.font-unix 1777 root root 10d
    d /tmp/.Test-unix 1777 root root 10d
    F /run/utmp 0664 root utmp -
    r /tmp/.X[0-9]-lock
    r /etc/nologin
    r /etc/shutdownpid
    r /forcefsck
    r /fastboot
    x11.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 General Public License as published by
    # the Free Software Foundation; either version 2 of the License, or
    # (at your option) any later version.
    # See tmpfiles.d(5) for details
    # Make sure these are created by default so that nobody else can
    d /tmp/.X11-unix 1777 root root 10d
    d /tmp/.ICE-unix 1777 root root 10d
    d /tmp/.XIM-unix 1777 root root 10d
    d /tmp/.font-unix 1777 root root 10d
    d /tmp/.Test-unix 1777 root root 10d
    # Unlink the X11 lock files
    r /tmp/.X[0-9]*-lock
    Can I delete the arch one - where is it started from at boot? I'm running only systemd and got rid of all arch units. Or can I merge them? I really can't tell which tmpfiles are needed.
    Last edited by swanson (2012-05-31 19:11:46)

    Solved now! Boot times are as fast as posssible on my HDD I think. Only thing after uninstalling initscripst and initscripts-systemd was that locale was not set inspite of a correct /etc/locale.conf. I had to make /etc/profile.d/locale.sh with this content;
    if [ -s /etc/locale.conf ]; then
    . /etc/locale.conf
    fi
    export LANG LANGUAGE LC_CTYPE LC_NUMERIC LC_TIME LC_COLLATE
    export LC_MONETARY LC_MESSAGES LC_PAPER LC_NAME LC_ADDRESS
    export LC_TELEPHONE LC_MEASUREMENT LC_IDENTIFICATION

  • [solved]systemd and console font

    Hi guys. I've just switched my laptop over to systemd and so far I'm finding it great! I am, however, having a slight issue with getting it to set a console font, err, properly.
    KEYMAP=uk
    FONT=Lat2-Terminus16
    Before switching to systemd, this worked fine. However now when I boot up, the font is set early (I have the hook in mkinitcpio.conf) but once I get to the login screen, the screen flickers and I end up back on the default font. I've tried this with several of the available fonts and it happens with all of them. I don't have it set anywhere else, so I'm not sure why the font is being reset. Has anyone else come across this issue yet?
    Cheers.
    Last edited by JHeaton (2012-08-25 20:20:34)

    bohoomil wrote:Did you really rebuild the initramfs? Once it becomes a part of your boot image, it shouldn't be reset (which happens when the video driver like nouveau gets loaded: if this is the case, add your video driver to the MODULES array in /etc/mkinitcpio,conf and rebuild the image again). I have been doing the very same thing every time I prepare a new setup and it always works as expected.
    Yes, I did rebuild it. I didn't have the video driver in MODULES though; adding it has now solved the issue. Don't know why I hadn't added i915 to that array though.
    Thanks very much for your help.

  • My Airport Time Capsule only works when I turn off and turn on, but I think this may end up with the unit. What can this happening and how to solve?

    Time Capsule Airport
    Hello to all, good day, sorry my english google, but it is the tool I have at the moment. I'm having trouble with my Time Capsule Airport, I made all the settings according to the manual, but there has been a connection problem with my iMac. When I finish my work I turn off the imac and then again when they return to work and care, it can not connect to Time Capsule Airport, making it impossible to remove the files and make back up by Time Machine only works when I turn off and turn on the Airport Time Capsule , but I think this may end up with the unit. What can this happening and how to solve? Thank you.
    Olá a todos, bom dia, desculpe meu inglês google, mas é a ferramenta que tenho no momento. Estou tendo dificuldades com a minha Airport Time Capsule, fiz todas as configurações de acordo com o manual, mas tem existido um problema de conexão com meu iMac. Quando termino meus trabalhos desligo o imac e depois quando retorno pra trabalhar novamente e ligo, ele não se conecta a Airport Time Capsule, impossibilitando retirar os arquivos e fazer o back-up pelo Time Machine, só funciona quando desligo e ligo a Airport Time Capsule, mas acho que isso pode acabar com o aparelho. O que pode esta acontecendo e como resolver? Obrigado.

    This is easier to do with pictures perhaps.. since we do not share a common language and machine translation leaves a lot to be desired.
    In the airport utility bring up your Time Capsule.
    Simply post the screenshots here.
    So here is mine.
    Click on the Edit button and give us the Internet and Wireless and Network tab..
    eg.
    Please also make sure you are set to ipv6 in your wireless or ethernet .. whichever is used.. and do tell which.
    This is wifi in your computer.
    The following are important..
    DO not use long names with spaces and non-alphanumeric names.
    Use short names, no spaces and pure alphanumeric.
    eg TC name. TCgen5
    Wireless name TCwifi
    Use WPA2 Personal security with 10-20 character pure alphanumeric password.
    read apple instructions to help with TM and TC.. they did finally admit it has issues in Mavericks.
    OS X Mavericks: Time Machine problems
    Mount the TC manually in finder.
    AFP://TCgen5.local
    When asked for the password .. that is the disk access password and save it in the keychain.
    Reset Time Machine
    See A4 here. http://pondini.org/TM/Troubleshooting.html

  • Calendar and Time showing in arabic but my phone's language is English. I bought my phone from DU in UAE , Dubai. Please help me solve this issue while keeping the Region to United Arab Emirates

    Calendar and Time showing in arabic but my phone's language is English. I bought my phone from DU in UAE , Dubai. Please help me solve this issue while keeping the Region to United Arab Emirates

    Valentine350z wrote:
    while keeping the Region to United Arab Emirates
    Not possible, I think.  Tell Apple how you feel about this at
    http://www.apple.com/feedback/iphone.html

  • Systemd and gnome 3 time settings?

    Hi
    I am having issues with the timezone/time in the gnome 3 time settings, and by searching the forums, it seems I am not alone. My system is a brand new 64 bit Arch installation (I installed it yesterday) and the problem is as follows:
    1. Click on the time at the center/top of the screen
    2. Click on "date and time settings"
    3. Unlock
    4. Choose timezone as "Region: Australia, City: Perth"
    5. Close out
    6. Repeat steps one and 2
    7. Timezone is still set to London, but it should be set to Perth, Australia
    None of the solutions posted on this forum helped except one: Post #5, here: https://bbs.archlinux.org/viewtopic.php?pid=1100623
    I followed the instructions and after updating grub and rebooting, the timezone worked fine, except the booting sequence looked weird (text did not fill the screen, each line just flashed at the top and then cleared itself) and my wireless network did not work.
    I am guessing that systemd needs to be installed but I must have not set it up properly. How do I go about doing that? If systemd/lack-of-systemd is not the cause of the problem, what could it be?
    Thanks for any help,
    James

    I know gnome 3.6 is going to require systemd, but I didn't think it was required on previous versions. I should probably let someone who still runs gnome talk about that, though. I've never been a fan.
    Anyway, since you mentioned editing grub, I assume you're now starting up with systemd? If so, make sure to read the wiki page on systemd: https://wiki.archlinux.org/index.php/Systemd
    It describes how to use unit files. I'm guessing this is why your wireless network doesn't work. Clearing after every line during boot is one I haven't seen. It is happening during kernel startup or just during systemd?

  • [SOLVED] systemd and ntpd.service

    I've just converted to pure systemd according to the wiki. Everything went remarkably well, with just a little blemish. While I'm not notified of any error at startup, when I check systemctl I find that ntpd.service's LOAD/ACTIVE/SUB is loaded/failed/failed.
    systemctl status ntpd.service gives me this:
    ntpd.service - Network Time Service
    Loaded: loaded (/usr/lib/systemd/system/ntpd.service; enabled)
    Active: failed (Result: exit-code) since Thu, 18 Oct 2012 04:16:56 +0200; 6s ago
    Process: 1397 ExecStart=/usr/bin/ntpd -g -u ntp:ntp (code=exited, status=0/SUCCESS)
    Main PID: 1398 (code=exited, status=255)
    CGroup: name=systemd:/system/ntpd.service
    Oct 18 04:16:56 mike ntpd[1398]: ntp_io: estimated max descriptors: 1024, initial socket boundary: 16
    Oct 18 04:16:56 mike ntpd[1398]: Listen and drop on 0 v4wildcard 0.0.0.0 UDP 123
    Oct 18 04:16:56 mike ntpd[1398]: Listen and drop on 1 v6wildcard :: UDP 123
    Oct 18 04:16:56 mike ntpd[1398]: Listen normally on 2 lo 127.0.0.1 UDP 123
    Oct 18 04:16:56 mike ntpd[1398]: Listen normally on 3 eth0 192.168.0.2 UDP 123
    Oct 18 04:16:56 mike ntpd[1398]: Listen normally on 4 lo ::1 UDP 123
    Oct 18 04:16:56 mike ntpd[1398]: Listen normally on 5 eth0 fe80::224:1dff:fec4:aebe UDP 123
    Oct 18 04:16:56 mike ntpd[1398]: peers refreshed
    Oct 18 04:16:56 mike ntpd[1398]: Listening on routing socket on fd #22 for interface updates
    Oct 18 04:16:56 mike systemd[1]: Started Network Time Service.
    and journalctl pretty much more of the same:
    Oct 18 04:16:56 mike ntpd[1397]: ntpd [email protected] Tue Aug 21 15:06:24 UTC 2012 (1)
    Oct 18 04:16:56 mike ntpd[1398]: proto: precision = 0.106 usec
    Oct 18 04:16:56 mike ntpd[1398]: ntp_io: estimated max descriptors: 1024, initial socket boundary: 16
    Oct 18 04:16:56 mike ntpd[1398]: Listen and drop on 0 v4wildcard 0.0.0.0 UDP 123
    Oct 18 04:16:56 mike sudo[1394]: pam_unix(sudo:session): session closed for user root
    Oct 18 04:16:56 mike ntpd[1398]: Listen and drop on 1 v6wildcard :: UDP 123
    Oct 18 04:16:56 mike ntpd[1398]: Listen normally on 2 lo 127.0.0.1 UDP 123
    Oct 18 04:16:56 mike ntpd[1398]: Listen normally on 3 eth0 192.168.0.2 UDP 123
    Oct 18 04:16:56 mike ntpd[1398]: Listen normally on 4 lo ::1 UDP 123
    Oct 18 04:16:56 mike ntpd[1398]: Listen normally on 5 eth0 fe80::224:1dff:fec4:aebe UDP 123
    Oct 18 04:16:56 mike ntpd[1398]: peers refreshed
    Oct 18 04:16:56 mike ntpd[1398]: Listening on routing socket on fd #22 for interface updates
    Oct 18 04:16:56 mike systemd[1]: Started Network Time Service.
    Oct 18 04:16:56 mike systemd[1]: ntpd.service: main process exited, code=exited, status=255
    Oct 18 04:16:56 mike systemd[1]: Unit ntpd.service entered failed state.
    Trying to use it manually (eg. ntpd -qg) works, so I'm not sure what's wrong with it exactly. Where else should I look?
    Last edited by Mr_Mario (2012-12-06 11:29:57)

    slickvguy wrote:I've just started converting to systemd and ran into the same issue. I believe the problem is that you are missing the ntp group from your group file. If you updated your system and merely renamed your group.pacnew to group, it no longer contains the ntp group that was previously added. I just added the ntp group again ( ntp:x:87: ), and ntp started properly and the status is correct. Hope this helps.
    That was it. Thank you!

  • Users of systemd and lxdm or lightdm please read and comment [solved]

    I'm trying to confirm that both lxdm and lightdm do not properly establish a systemd session upon login.  Thanks to tomegun in this thread for the detective work.  In short, if you both use systemd and login graphically with EITHER lxdm or lightdm, please post the output of:
    $ ck-list-sessions | grep TRUE
    $ loginctl
    For me, logging in with lxdm or lightdm, the result is:
    $ ck-list-sessions | grep TRUE
    active = TRUE
    is-local = TRUE
    $ loginctl
    SESSION UID USER SEAT
    0 sessions listed.
    So lxdm or lightdm are not establishing systemd sessions correctly... if I log in with gdm, the results for the `loginctl` are different:
    $ loginctl
    SESSION UID USER SEAT
    9 1000 facade seat0
    1 sessions listed.
    Last edited by graysky (2012-06-24 14:59:31)

    Hello, I have a problem when I connect multi-user on xfce session with lxdm. loginctl commande return me only one session (the first connected). Full description of my bug here :
    starting xfce session from lxdm properly (systemd-logind support).
    I've modify my /etc/pam.d/lxdm from
    #%PAM-1.0
    auth requisite pam_nologin.so
    auth required pam_env.so
    auth required pam_unix.so
    account required pam_unix.so
    session required pam_limits.so
    session required pam_unix.so
    password required pam_unix.so
    -session optional pam_loginuid.so
    -session optional pam_systemd.so
    to
    #%PAM-1.0
    auth requisite pam_nologin.so
    auth required pam_env.so
    auth required pam_unix.so
    account required pam_unix.so
    session required pam_limits.so
    session required pam_unix.so
    password required pam_unix.so
    session required pam_loginuid.so
    session required pam_systemd.so
    But it doesn't work better... any idea?

  • [SOLVED] systemd and pm-utils quirks (gma500_gfx)

    Hi,
    I have a netbook with the infamous poulsbo/gma500 chipset. To suspend it on the console (I am not yet at X ;-) ) I need to add the --quirk-vbemode-restore option to pm-suspend as described in the wiki [1]. How can I get the same effect when migrating to systemd (and therefore switching to systemctl and dropping pm-utils)?
    Thanks
    [1] https://wiki.archlinux.org/index.php/Poulsbo
    Last edited by olaf.the.lost.viking (2012-08-22 23:13:22)

    The code is in /usr/lib/pm-utils/sleep.d/98video-quirk-db-handler and /usr/lib/pm-utils/sleep.d/99video. The substantial part is
    # save/restore the vbe mode
    vbe_savemode() { vbe vbemode get |savestate vbemode; }
    vbe_restoremode()
    # this is a little mode complicated to handle special-casing mode 3.
    local vbemode=$(restorestate vbemode)
    if [ "$vbemode" = "3" ]; then
    vbe vgamode set $vbemode
    else
    vbe vbemode set $vbemode
    fi
    Note that vbe function only forwards its arguments to vbetool. You could place something like this into /usr/lib/systemd/system-sleep/99video
    #!/bin/sh
    TMPFILE=/tmp/gma500-state
    vbe_savemode() {
    vbetool vbemode get > $TMPFILE
    vbe_restoremode() {
    # this is a little mode complicated to handle special-casing mode 3.
    local vbemode=$(cat $TMPFILE)
    if [ "$vbemode" = "3" ]; then
    vbetool vgamode set $vbemode
    else
    vbetool vbemode set $vbemode
    fi
    if [[ $1 == "pre" ]]; then
    vbe_savemode
    elif [[ $1 == "post" ]]; then
    [ -O /tmp/gma500-state ] && vbe_restoremode
    fi

  • [SOLVED] Date and Time messed up on GNOME

    I recently purchased a new laptop with Windows 7 Home Premium, and I've got a dual-boot set up and running perfectly between Win7 and Arch. The only issue is that the date and time in GNOME shell is messed up.
    I've checked the all-knowing ArchWiki, and it says that UTC is generally preferred, unless using a Windows operating system or something, in which case using localtime would be preferred. I've done that. the time in GNOME shell still shows up as inaccurate. I've reset the time in GNOME shell to fix it, but seeing as how /etc/rc.conf is sourced upon boot, my efforts were in vain.
    Has this occurred with anyone else who has a dual-boot with Windows 7 where the time shows up as inaccurate? If so, what's the method of fixing it?
    Last edited by shaunsingh14 (2012-03-17 16:07:44)

    karol wrote:
    shaunsingh14 wrote:I've checked the all-knowing ArchWiki, and it says that UTC is generally preferred, unless using a Windows operating system or something, in which case using localtime would be preferred.t?
    The wiki does mention UTC in Windows: https://wiki.archlinux.org/index.php/Ti … in_Windows
    Please post the output of 'hwclock --debug'.
    Output of
    hwclock --debug
    is as follows:
    [root@the-enforcer shaun]# hwclock --debug
    hwclock from util-linux 2.20.1
    Using /dev interface to clock.
    Last drift adjustment done at 1331440368 seconds after 1969
    Last calibration done at 1331440368 seconds after 1969
    Hardware clock is on UTC time
    Assuming hardware clock is kept in UTC time.
    Waiting for clock tick...
    ...got clock tick
    Time read from Hardware Clock: 2012/03/11 15:23:59
    Hw clock time : 2012/03/11 15:23:59 = 1331479439 seconds since 1969
    Sun 11 Mar 2012 11:23:59 AM EDT -0.549004 seconds
    [root@the-enforcer shaun]#

  • Time synchronisation fails on a cFP-2020

    Hi all,
    I am having problems with time synchronisation on my cFP-2020.
    Whenever I restart the FP, the time gets updated from the
    specified "server", a laptop running the control vi that
    communicates with the autonomuous  vi that runs the cFP.
    But then time drifts dramatically, roughly 10 minutes per hour!
    How can I debug this, set the priority for the time synchronisation
    higher (is that possible?) or solve the problem in a  satisfactory
    way?
    To avoid influences of the LAN I now use a router that isolates
    the cFP and the Laptop from the rest of the network, still the same
    result!
    Thanks,
    Olaf

    If you are using the Get Date/TIme vi, the timesource is the OS.  This clock will drift away from the
    hardware clock under CPU load, just like on a PC.  Do you have any loops w/o waits or something
    else that might be using up a lot of CPU cycles?  If you turn off the FP unit for an hour does it power
    up thinking it was off for 50 minutes?  This might indicate a hardware problem.
    After much gnashing of teeth and many discussions with very patient NI people, I have collected the
    following suggestions for time on embedded fieldpoint:
    1) Use the hardware clock as a source rather than the OS.  Create a 500 mS loop to do a FP Read
    of one of the dip switches on the controller and write the timestamp to a functional global.  Read this
    functional global whenever you want the 'real' time.  Don't use the Get Date/Time or similar functions.
    2) Anywhere that you need only relative time, i.e. 'do x every 500 mS' use the mS timer function.
    3) If you are doing a time comparison make sure you consider the case where the clock is significantly
    out of whack, either direction.  If the clock gets a step change (daylight savings?) you don't want your
    1 S loop to wait 3600 +1 S ( or worse, wait until LV time overflows in 2038!).  Actually this is more of a
    general LV suggestions.
    4) Handle the setting of the time on the FP unit within your application.  Disable the timeserver.  This
    way you know when your clock changed plus you can address any potential jitter.
    Hope something in here helps.
    Matt

Maybe you are looking for