[Solved] systemd-sysctl.service failed to set parameters from 99-sy...

$ cat /etc/sysctl.d/99-sysctl.conf
# Protection from the SYN flood attack.
net.ipv4.tcp_syncookies = 1
# Disable packet forwarding.
net.ipv4.ip_forward = 0
# Tweak those values to alter disk syncing and swap behavior.
vm.vfs_cache_pressure = 1000
vm.swappiness = 0
# USB Speed
vm.dirty_ratio = 5
vm.dirty_background_ratio = 3
# KDE
fs.inotify.max_user_watches = 524288
$ cat /proc/sys/vm/dirty_ratio
10
$ cat /proc/sys/vm/dirty_background_ratio
5
but
$ cat /proc/sys/vm/swappiness
0
$ cat /proc/sys/vm/vfs_cache_pressure
1000
Only restarting of systemd-systct.service helps.
$ sudo systemctl restart systemd-sysctl.service
$ cat /proc/sys/vm/dirty_ratio
5
$ cat /proc/sys/vm/dirty_background_ratio
3
what am i doing wrong?
Solved with - % sudo chmod -x /usr/lib/pm-utils/power.d/laptop-mode
Last edited by Perfect Gentleman (2013-09-20 00:34:44)

Perfect Gentleman wrote:Solved with - % sudo chmod -x /usr/lib/pm-utils/power.d/laptop-mode
A more permanent solution is to mask that file
mkdir -p /etc/pm/power.d
touch /etc/pm/power.d/laptop-mode
which will not get written on update or reinstall. (Not than an update to this package seems at all likely but just in case.)

Similar Messages

  • [solved] What makes systemd-logind.service fail?

    After last update made yesterday I was unable to reboot. With the help of an installation cd  and chrooting I disabled my graphical login manager lxdm which, when started, seems to do nothing and the system is stuck.
    Without lxdm service enabled, I can start xfce4 with
    startxfce4
    from commandline and everything seems to run fine. 
    But the booting process gives me several messages telling that the service systemd-logind failed. Apart from the virtual console created while booting and the one running X11 there is no other one (no login prompt when pressing strg+alt f3 e.g.)
    [root@amd64-archlinux ~]# systemctl status systemd-logind
    ● systemd-logind.service - Login Service
    Loaded: loaded (/usr/lib/systemd/system/systemd-logind.service; static)
    Active: failed (Result: start-limit) since Sun 2014-06-08 19:09:24 CEST; 5min ago
    Docs: man:systemd-logind.service(8)
    man:logind.conf(5)
    http://www.freedesktop.org/wiki/Software/systemd/logind
    http://www.freedesktop.org/wiki/Software/systemd/multiseat
    Process: 336 ExecStart=/usr/lib/systemd/systemd-logind (code=exited, status=1/FAILURE)
    Main PID: 336 (code=exited, status=1/FAILURE)
    Status: "Shutting down..."
    Jun 08 19:09:24 amd64-archlinux systemd[1]: Failed to start Login Service.
    Jun 08 19:09:24 amd64-archlinux systemd[1]: Unit systemd-logind.service entered failed state.
    Jun 08 19:09:24 amd64-archlinux systemd[1]: systemd-logind.service has no holdoff time, scheduling restart.
    Jun 08 19:09:24 amd64-archlinux systemd[1]: Stopping Login Service...
    Jun 08 19:09:24 amd64-archlinux systemd[1]: Starting Login Service...
    Jun 08 19:09:24 amd64-archlinux systemd[1]: systemd-logind.service start request repeated too quickly, refusing to start.
    Jun 08 19:09:24 amd64-archlinux systemd[1]: Failed to start Login Service.
    Jun 08 19:09:24 amd64-archlinux systemd[1]: Unit systemd-logind.service entered failed state.
    Has anyone an idea where to lead me?
    Last edited by bernd_b (2014-06-09 11:20:21)

    I don't know if I got you point - but here is a try:
    I am running X11 started manually with "startxfce4". So firing up a konsole in X11 I do and get
    root@amd64-archlinux pkg]# systemctl stop systemd-logind
    [root@amd64-archlinux pkg]# systemctl start systemd-logind
    Job for systemd-logind.service failed. See 'systemctl status systemd-logind.service' and 'journalctl -xn' for details.
    journalctl -xn:
    -- Unit systemd-logind.service has begun shutting down.
    Jun 08 21:38:18 amd64-archlinux systemd[1]: Starting Login Service...
    -- Subject: Unit systemd-logind.service has begun with start-up
    -- Defined-By: systemd
    -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
    -- Unit systemd-logind.service has begun starting up.
    Jun 08 21:38:18 amd64-archlinux systemd[1]: systemd-logind.service start request repeated too quickly, refusing to start.
    Jun 08 21:38:18 amd64-archlinux systemd[1]: Failed to start Login Service.
    -- Subject: Unit systemd-logind.service has failed
    -- Defined-By: systemd
    -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
    -- Unit systemd-logind.service has failed.
    -- The result is failed.
    I ran the service directly I get:
    [root@amd64-archlinux pkg]# /usr/lib/systemd/systemd-logind
    Failed to connect to system bus: No such file or directory
    Failed to fully start up daemon: No such file or directory
    What I figured out so far is this in addition:
    - krusader does not start- there is no response or message in the konsole when firing up this application.
    - I can only mount nfs-shares with the option "-o nolock" otherwise I get, e.g.
    mount.nfs: rpc.statd is not running but is required for remote locking.
    mount.nfs: Either use '-o nolock' to keep locks local, or start statd.
    mount.nfs: an incorrect mount option was specified
    Last edited by bernd_b (2014-06-08 19:48:43)

  • Systemd-hostnamed.service fails to start

    I'm finding the systemd-hostnamed.service isnt working
    $ sudo systemctl --state=failed
    [sudo] password for kevdog:
    UNIT LOAD ACTIVE SUB DESCRIPTION
    ● systemd-hostnamed.service loaded failed failed Hostname Service
    LOAD = Reflects whether the unit definition was properly loaded.
    ACTIVE = The high-level unit activation state, i.e. generalization of SUB.
    SUB = The low-level unit activation state, values depend on unit type.
    1 loaded units listed. Pass --all to see loaded but inactive units, too.
    To show all installed unit files use 'systemctl list-unit-files'.
    $ sudo systemctl status systemd-hostnamed.service
    ● systemd-hostnamed.service - Hostname Service
    Loaded: loaded (/usr/lib/systemd/system/systemd-hostnamed.service; static)
    Active: failed (Result: timeout) since Tue 2014-12-16 23:11:36 CST; 10min ago
    Docs: man:systemd-hostnamed.service(8)
    man:hostname(5)
    man:machine-info(5)
    http://www.freedesktop.org/wiki/Software/systemd/hostnamed
    Main PID: 4584
    Dec 16 23:08:35 orphan systemd[1]: systemd-hostnamed.service start operation timed out. Terminating.
    Dec 16 23:10:06 orphan systemd[1]: systemd-hostnamed.service stop-final-sigterm timed out. Killing.
    Dec 16 23:11:36 orphan systemd[1]: systemd-hostnamed.service still around after final SIGKILL. Entering failed mode.
    Dec 16 23:11:36 orphan systemd[1]: Failed to start Hostname Service.
    Dec 16 23:11:36 orphan systemd[1]: Unit systemd-hostnamed.service entered failed state.
    Dec 16 23:11:36 orphan systemd[1]: systemd-hostnamed.service failed.
    I found this addressed in this topic:
    https://github.com/ev3dev/ev3dev/issues/189
    Within this page they state:
    Confirmed that removing PrivateNetwork=yes from the service file works as a workaround. Maybe need to enable CONFIG_NAMESPACES=y and CONFIG_NET_NS=y kernel modules
    I removed the PrivateNetwork=yes from the service file, however this didn't seem to work.  I did not enable the kernel modules.  I am currently running the following kernel: 3.17.6-1-ARCH
    Thanks

    I'm finding the systemd-hostnamed.service isnt working
    $ sudo systemctl --state=failed
    [sudo] password for kevdog:
    UNIT LOAD ACTIVE SUB DESCRIPTION
    ● systemd-hostnamed.service loaded failed failed Hostname Service
    LOAD = Reflects whether the unit definition was properly loaded.
    ACTIVE = The high-level unit activation state, i.e. generalization of SUB.
    SUB = The low-level unit activation state, values depend on unit type.
    1 loaded units listed. Pass --all to see loaded but inactive units, too.
    To show all installed unit files use 'systemctl list-unit-files'.
    $ sudo systemctl status systemd-hostnamed.service
    ● systemd-hostnamed.service - Hostname Service
    Loaded: loaded (/usr/lib/systemd/system/systemd-hostnamed.service; static)
    Active: failed (Result: timeout) since Tue 2014-12-16 23:11:36 CST; 10min ago
    Docs: man:systemd-hostnamed.service(8)
    man:hostname(5)
    man:machine-info(5)
    http://www.freedesktop.org/wiki/Software/systemd/hostnamed
    Main PID: 4584
    Dec 16 23:08:35 orphan systemd[1]: systemd-hostnamed.service start operation timed out. Terminating.
    Dec 16 23:10:06 orphan systemd[1]: systemd-hostnamed.service stop-final-sigterm timed out. Killing.
    Dec 16 23:11:36 orphan systemd[1]: systemd-hostnamed.service still around after final SIGKILL. Entering failed mode.
    Dec 16 23:11:36 orphan systemd[1]: Failed to start Hostname Service.
    Dec 16 23:11:36 orphan systemd[1]: Unit systemd-hostnamed.service entered failed state.
    Dec 16 23:11:36 orphan systemd[1]: systemd-hostnamed.service failed.
    I found this addressed in this topic:
    https://github.com/ev3dev/ev3dev/issues/189
    Within this page they state:
    Confirmed that removing PrivateNetwork=yes from the service file works as a workaround. Maybe need to enable CONFIG_NAMESPACES=y and CONFIG_NET_NS=y kernel modules
    I removed the PrivateNetwork=yes from the service file, however this didn't seem to work.  I did not enable the kernel modules.  I am currently running the following kernel: 3.17.6-1-ARCH
    Thanks

  • [Solved] systemd-hostnamed.service broken in systemd 212?

    Can someone confirm by checking
    hostnamectl status
    and
    systemctl --failed
    Thanks!
    Last edited by gedgon (2014-04-03 20:30:03)

    teateawhy wrote:Works for me.
    Hmm, interesting. In v.212 systemd-hostnamed.service failing for me, and hostnamectl timing out. Works fine after downgrading.
    Edit: Problem caused by wrong /var/tmp permission. Thanks, teateawhy.
    Last edited by gedgon (2014-04-03 20:29:47)

  • [Solved] Suspend to Disk: systemd-hibernate.service Fails

    Howdy-ha, folks.  I know this looks pretty mundane, but for the life of me I can't get hibernation to work.  Each time I run systemctl hibernate the screen will go blank as though preparing to suspend, then come back on; journalctl shows the same error messages:
    PM: Cannot find swap device, try swapon -a.
    PM: Cannot get swap writer
    Failed to start Hibernate.
    Dependency failed for Hibernate.
    Service sleep.target is not needed anymore. Stopping.
    Unit systemd-hibernate.service entered failed state.
    This happens when swap is mounted, and "swapon" says as much.  I've been working on this for about four hours now, and none of what I've found seems to pertain to my situation (most of the "solutions" were "Increase partition size').
    What I've tried:
    - Three different kernels---linux-ck custom build and linux-ck-sandybridge from graysky's repo (both with BFQ and CFQ: see below), as well as the stock Arch kernel
    - A 2 Gb swap file at /swapfile on my SSD;
    - A 4 Gb swap partition on /dev/mmcblk0 (an SD card, and my preferred method/location, if possible);
    - An 8 Gb swap partition on HDD /dev/sdb2
    Reasons for wanting hibernate rather than suspend-to-RAM:
    - Maximize battery life.
    - There's some kind of issue with Linux-ck and suspending to RAM; it'll work once, then freeze in a kernel panic the second time, forcing a hard reset.  The stock kernel suspends to RAM, but still won't hibernate
    - I put a lot of time into building a custom Linux-ck kernel, and would rather not have to start the configuration over with the stock kernel if possible.
    I'm working with limited space on my boot drive and, as mentioned, increasing the amount of swap has no bearing on this.  The resulting phenomenon and error messages are the same, regardless of size and medium.  I've exhausted my ideas on where to look, and what to even look for.  Thanks a lot to everyone in advance (especially you,karol; don't think I don't see you lurking back there )
    Last edited by ANOKNUSA (2013-11-17 05:32:14)

    I rebooted, so trying to recreate the same situation:
    $ free -h
    total used free shared buffers cached
    Mem: 7.7G 7.2G 525M 0B 32M 2.3G
    -/+ buffers/cache: 4.8G 2.9G
    Swap: 3.7G 0B 3.7G
    top reports nearly the same thing:
    top - 20:00:13 up 22 min, 1 user, load average: 0.12, 0.22, 0.14
    Tasks: 155 total, 1 running, 154 sleeping, 0 stopped, 0 zombie
    %Cpu(s): 0.1 us, 0.3 sy, 0.1 ni, 99.5 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st
    KiB Mem: 8061380 total, 7500096 used, 561284 free, 34432 buffers
    KiB Swap: 3872236 total, 0 used, 3872236 free, 2417172 cached
    htop, however, reports about 1.5 Gb more free RAM.  After reboot, swappiness is still set to 100 with the same results.
    EDIT:
    ANOKNUSA wrote: I'll test it again with the other locations mentioned in the OP, and get back to you.
    Even though I rebooted, I haven't done this yet, so ignore it for the moment.
    Last edited by ANOKNUSA (2013-08-28 01:06:10)

  • [SOLVED] Systemd fluidsynth service tries to load / fluidsynth removed

    I recently moved to a pure systemd configuration and have been trying to familiarise myself with it.
    I subsequently noticed that I had fluidsynth installed, and a pacman -Qi said that it was installed as a dependency for another package, but that no other packages currently required it.  So I removed it.
    Now when I run systemctl --failed I get the following output:
    UNIT LOAD ACTIVE SUB JOB DESCRIPTION
    fluidsynth.service loaded failed failed FluidSynth Daemon
    I can stop the service without any errors, but disabling it results in this:
    $ sudo systemctl disable fluidsynth.service
    Failed to issue method call: No such file or directory
    I'm not really sure what this means.  It doesn't seem to be causing any problems, but I'd like to understand what's going on and get everything working as it should.  Can anyone suggest what I should do?
    Last edited by esuhl (2012-10-16 01:38:21)

    Cheers.  But I can't see one there:
    $ sudo ls -al /etc/systemd/system
    total 32
    drwxr-xr-x 8 root root 4096 Oct 14 02:50 .
    drwxr-xr-x 5 root root 4096 Oct 14 02:50 ..
    drwxr-xr-x 2 root root 4096 Aug 30 20:13 getty.target.wants
    drwxr-xr-x 2 root root 4096 Oct 12 20:13 local-fs.target.wants
    drwxr-xr-x 2 root root 4096 Oct 14 02:50 multi-user.target.wants
    drwxr-xr-x 2 root root 4096 Oct 9 05:01 printer.target.wants
    drwxr-xr-x 2 root root 4096 Oct 9 05:01 sockets.target.wants
    drwxr-xr-x 2 root root 4096 Oct 12 20:13 sysinit.target.wants
    lrwxrwxrwx 1 root root 41 Oct 9 04:55 syslog.service -> /usr/lib/systemd/system/syslog-ng.service
    Last edited by esuhl (2012-10-16 00:04:22)

  • [solved] systemd dhcpcd service

    Not sure what is failing with this output, a service file start dependency?
    Mar 12 10:08:53 yrch systemd[1]: Timed out waiting for device sys-subsystem-net-devices-eth0.device.
    Mar 12 10:08:53 yrch systemd[1]: Dependency failed for dhcpcd on eth0.
    This is the dhcpcd service file
    [root@yrch multi-user.target.wants]# cat dh*
    [Unit]
    Description=dhcpcd on %I
    Wants=network.target
    Before=network.target
    BindsTo=sys-subsystem-net-devices-%i.device
    After=sys-subsystem-net-devices-%i.device
    [Service]
    Type=forking
    PIDFile=/run/dhcpcd-%I.pid
    ExecStart=/usr/sbin/dhcpcd -q -w %I
    ExecStop=/usr/sbin/dhcpcd -x %I
    [Install]
    WantedBy=multi-user.target
    Also running dhcpcd standalone fails first attempt, works correctly second attempt.
    Last edited by ackt1c (2014-11-23 08:36:28)

    Is your device eth0? The interface naming scheme has changed, it's no longet eth0, eth1 and so on, but udev gives names to devices based on the MAC address now. Unless you manually changed config files, you will have this new naming scheme in effect. Check with ip link.
    Last edited by elkoraco (2013-03-13 09:18:50)

  • Systemd dhcpcd service failing on boot

    Hi folks,
    I'm trying to convert my workstation to "pure" systemd configuration (no initscripts-systemd):
    [csingley@quadrupel ~]$ pacman -Qs systemd
    local/libsystemd 185-3
    systemd client libraries
    local/systemd 185-3
    system and service manager
    local/systemd-arch-units 20120612-5
    Arch specific Systemd unit files
    local/systemd-sysvcompat 185-3
    sysvinit compat for systemd
    local/systemd-tools 185-3
    standalone tools from systemd
    Per the instructions on the wiki, I enabled [email protected], but the service fails to start upon boot.
    [root@quadrupel csingley]# systemctl status [email protected]
    [email protected] - dhcpcd on eth0
    Loaded: loaded (/usr/lib/systemd/system/[email protected]; enabled)
    Active: failed (Result: exit-code) since Thu, 28 Jun 2012 12:36:16 -0500; 39s ago
    Process: 299 ExecStart=/sbin/dhcpcd -A -q -w %I (code=exited, status=1/FAILURE)
    CGroup: name=systemd:/system/[email protected]/eth0
    However, I can start the service manually after the boot process is complete:
    [root@quadrupel csingley]# systemctl start [email protected]
    [root@quadrupel csingley]#
    Presumably not all dependencies have been satisfied when systemd tries to run dhcpcd during boot.
    I'm very new to systemd; any tips for troubleshooting this issue?
    TIA

    dj-x-cess wrote:
    I have the same problem.
    It seems, at least for my machine, dhcpcd starts before eth0 gets initialized on boot time:
    Sep 05 07:38:39 vostro dhcpcd[180]: version 5.6.0 starting
    Sep 05 07:38:39 vostro dhcpcd[180]: eth0: interface not found or invalid
    Sep 05 07:38:39 vostro kernel: r8169 Gigabit Ethernet driver 2.3LK-NAPI loaded
    Sep 05 07:38:39 vostro kernel: r8169 0000:13:00.0: irq 47 for MSI/MSI-X
    Sep 05 07:38:39 vostro kernel: r8169 0000:13:00.0: eth0: RTL8168d/8111d at 0xf9c00000, a4:ba:db:a6:a6:33, XID 083000c0 IRQ 47
    Sep 05 07:38:39 vostro kernel: r8169 0000:13:00.0: eth0: jumbo features [frames: 9200 bytes, tx checksumming: ko]
    Yes. Same thing here with the latest install. I put "tg3" in /etc/modules-load.d/tigon.conf. Guess it loads it sooner then and now it gets an IP. Couldn't you make dhcpcd wait for eth0 to come up? It looks important, I mean dhcp should work I'm a newbie with Arch, installed it for the first time.
    Here are my logs before the fix (I was looking in /var/log/, but then I found out that there is a journalctl command):
    Nov 14 15:33:40 neimastina dhcpcd[176]: version 5.6.2 starting
    Nov 14 15:33:40 neimastina dhcpcd[176]: eth0: interface not found or invalid
    Nov 14 15:33:44 neimastina systemd[1]: [email protected]: control process exited, code=exited status=1
    Nov 14 15:33:45 neimastina kernel: EDAC MC: Ver: 3.0.0
    Nov 14 15:33:45 neimastina kernel: wmi: Mapper loaded
    Nov 14 15:33:45 neimastina kernel: iTCO_vendor_support: vendor-support=0
    Nov 14 15:33:45 neimastina kernel: tg3.c:v3.124 (March 21, 2012)
    Nov 14 15:33:45 neimastina kernel: EDAC MC0: Giving out device to 'x38_edac' 'x38': DEV 0000:00:00.0
    Nov 14 15:33:45 neimastina kernel: tg3 0000:34:00.0: eth0: Tigon3 [partno(BCM95751A519FLP) rev 4201] (PCI Express) MAC address 00:10:18:53:12:b7
    Nov 14 15:33:45 neimastina kernel: tg3 0000:34:00.0: eth0: attached PHY is 5750 (10/100/1000Base-T Ethernet) (WireSpeed[1], EEE[0])
    Nov 14 15:33:45 neimastina kernel: tg3 0000:34:00.0: eth0: RXcsums[1] LinkChgREG[0] MIirq[0] ASF[0] TSOcap[1]
    Nov 14 15:33:45 neimastina kernel: tg3 0000:34:00.0: eth0: dma_rwctrl[76180000] dma_mask[64-bit]
    Nov 14 15:33:45 neimastina kernel: gpio_ich: GPIO from 195 to 255 on gpio_ich

  • Set parameters from event

    I need set render parameters from event. From backing file cant find how set render paramters.

    Hello,
    I assume you are using JSR168 portlets and trying to set the render parameters when you receive an event? If so, you can't do that from the backing file; you will need to handle the event in your portlet instead of a backing file. For example, the following code would go in your portlet's java source:
    import javax.portlet.ActionResponse;
    import javax.portlet.ActionRequest;
    import com.bea.netuix.events.Event;
    public class JavaPortlet extends GenericPortlet
    // This method will receive the event. It can have any name but must
    // have this signature
    public void handleEvent(ActionRequest request, ActionResponse response,
    Event event)
    // Event handling code goes here
    // To set a render parameter, make calls like this:
    response.setRenderParameter("paramName", "paramValue");
    Then, in your .portlet file instead of a tag for "invokeBackingFileMethod" use the tag "invokeJavaPortletMethod" and specify the name of the method to call, just like the "invokeBackingFileMethod" did.
    Kevin

  • [WPF] AutoCompleteBox: set parameters from code behind

    Hi,
    I'm using AutoCompleteBox from Codeplex.com
    I would set some parameters from code behind... 
    In XAML, I defined namespace:
    xmlns:toolkit="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Input.Toolkit"
    After using AutoCompleteBox:
    <toolkit:AutoCompleteBox
    x:Name="myAutoComplete"
    ItemsSource="{Binding Source={StaticResource DomainDataViewModel}, Path=SampleProperties, Mode=OneWay, UpdateSourceTrigger=PropertyChanged}"
    SelectedItem="{Binding Name}"
    ValueMemberPath="Name"
    ItemTemplate="{StaticResource PropertyBoxItemTemplate}"
    MouseLeave="PropertyAutoCompleteBox_MouseLeave"
    >
    </toolkit:AutoCompleteBox>
    If I would set any parameter from code behind, in my.xaml.cs, I not found myAutoComplete, why?
    Thanks.

    >>I inserted the AutoCompleteBox as DataGridTemplateColumn.CellEditingTemplate.
    Then you cannot access it directly from the code-behind as I told you.
    >>I would apply a FilterCustom and a ItemFilter.
    You could handle the Loaded event for the AutoCompleteBox and set any of its properties in there:
    <toolkit:AutoCompleteBox
    x:Name="myAutoComplete"
    Loaded="myAutoComplete_Loaded"
    ItemsSource="{Binding Source={StaticResource DomainDataViewModel}, Path=SampleProperties, Mode=OneWay, UpdateSourceTrigger=PropertyChanged}"
    SelectedItem="{Binding Name}"
    ValueMemberPath="Name"
    ItemTemplate="{StaticResource PropertyBoxItemTemplate}"
    MouseLeave="PropertyAutoCompleteBox_MouseLeave"
    >
    </toolkit:AutoCompleteBox>
    private void myAutoComplete_Loaded(object sender, RoutedEventArgs e)
    AutoCompleteBox myAutoComplete = sender as AutoCompleteBox;
    //set properties or do whatever here...
    myAutoComplete.ValueMemberPath = "Name";
    dynamic dataObject = myAutoComplete.DataContext;
    //access any properies of the data object in the DataGrid...
    How to do filtering is a completely other question that should be asked in a new thread though. It has nothing to do with your original question.
    Please remember to mark helpful posts as answer to close your threads and then start a new thread if you have a new question. Please don't ask several questions in the same thread.

  • [SOLVED] systemd adsl service does not start

    After the today's upgrade of my system I get lines like this in my journal, as the adsl service does not want to start.
    # router systemd[522]: Failed at step EXEC spawning /usr/sbin/pppoe-start: No such file or directory
    The problem is, that pppoe-start is in /usr/bin/ and not in /usr/sbin. According to pacman (pacman-Ql rp-pppoe) /usr/bin/ is the correct location.
    I really don't know, why systemd is trying to launch it, because even the service file (/usr/lib/systemd/system/adsl.service) points to the correct location.
    [Unit]
    Description=ADSL Deamon
    [Service]
    Type=forking
    ExecStart=/usr/bin/pppoe-start
    ExecStop=/usr/bin/pppoe-stop
    [Install]
    WantedBy=multi-user.target
    The service is launching and stopping with pppoe-start and pppoe-stop.
    When launched, it also shuts down fine when stopping it by
    systemctl stop adsl
    Why the hell is it trying to launch from /usr/sbin/?
    Last edited by scar (2013-06-04 13:07:23)

    It goes definitely against any logic.
    The service file looks good, but I've copied it to /usr/lib/systemd/system/bdsl.service. Same contents - and the new one launches succesfully.
    I've deleted the original ...adsl.service file, verified that it disappeared, copied it back from the new bdsl.service file, and it still does not launch.
    [EDIT]
    I've erased the drive, restored the system from a 1 week old backup, started it - everything worked. Then I'v updated the whole system, including the rp-pppoe package, and the adsl service is failing again.
    Downgrading solves the problem. Should I file a bug report?
    Last edited by scar (2013-06-01 10:14:41)

  • [SOLVED] systemd-modules-load fails

    .. because it cannot find gspca. My log:
    journalctl -xn
    -- Logs begin at Thu 2013-08-22 11:43:18 CEST, end at Mon 2014-06-23 14:26:30 CEST. --
    Jun 23 14:25:21 jiggs org.kde.knotify[1825]: "/org/freedesktop/UDisks2/block_devices/loop7" has new interfaces: ("org.
    Jun 23 14:25:22 jiggs org.kde.knotify[1825]: "/org/freedesktop/UDisks2/block_devices/loop2" has new interfaces: ("org.
    Jun 23 14:25:22 jiggs org.kde.knotify[1825]: "/org/freedesktop/UDisks2/block_devices/loop1" has new interfaces: ("org.
    Jun 23 14:25:22 jiggs org.kde.knotify[1825]: "/org/freedesktop/UDisks2/block_devices/loop0" has new interfaces: ("org.
    Jun 23 14:26:19 jiggs org.kde.knotify[1825]: "/org/freedesktop/UDisks2/block_devices/loop0" lost interfaces: ("org.fre
    Jun 23 14:26:30 jiggs systemd[1]: Starting Load Kernel Modules...
    -- Subject: Unit systemd-modules-load.service has begun with start-up
    -- Defined-By: systemd
    -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
    -- Unit systemd-modules-load.service has begun starting up.
    Jun 23 14:26:30 jiggs systemd-modules-load[3138]: Failed to find module 'gspca'
    Jun 23 14:26:30 jiggs systemd[1]: systemd-modules-load.service: main process exited, code=exited, status=1/FAILURE
    Jun 23 14:26:30 jiggs systemd[1]: Failed to start Load Kernel Modules.
    -- Subject: Unit systemd-modules-load.service has failed
    -- Defined-By: systemd
    -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
    -- Unit systemd-modules-load.service has failed.
    -- The result is failed.
    Jun 23 14:26:30 jiggs systemd[1]: Unit systemd-modules-load.service entered failed state.
    But I have lots of gspca's:
    # ls /lib/modules/`uname -r`/kernel/drivers/media/usb/gspca
    gl860 gspca_kinect.ko gspca_ov534.ko gspca_sonixj.ko gspca_sq905c.ko gspca_topro.ko
    gspca_benq.ko gspca_konica.ko gspca_pac207.ko gspca_spca1528.ko gspca_sq905.ko gspca_tv8532.ko
    gspca_conex.ko gspca_main.ko gspca_pac7302.ko gspca_spca500.ko gspca_sq930x.ko gspca_vc032x.ko
    gspca_cpia1.ko gspca_mars.ko gspca_pac7311.ko gspca_spca501.ko gspca_stk014.ko gspca_vicam.ko
    gspca_etoms.ko gspca_mr97310a.ko gspca_se401.ko gspca_spca505.ko gspca_stk1135.ko gspca_xirlink_cit.ko
    gspca_finepix.ko gspca_nw80x.ko gspca_sn9c2028.ko gspca_spca506.ko gspca_stv0680.ko gspca_zc3xx.ko
    gspca_jeilinj.ko gspca_ov519.ko gspca_sn9c20x.ko gspca_spca508.ko gspca_sunplus.ko m5602
    gspca_jl2005bcd.ko gspca_ov534_9.ko gspca_sonixb.ko gspca_spca561.ko gspca_t613.ko stv06xx
    The only difference I have with respect to a standard installation is that I downloaded an older version of the backport drivers, and in doing so I surely re-installed gspca.
    So my questions are: where is systemd-module-load searching for gspca? How can I persuade it to search in the right directory? And in any case, why is it searching for it in the wrong place to start with?. Just in case,
    # uname -a
    Linux jiggs 3.15.1-1-ARCH #1 SMP PREEMPT Tue Jun 17 09:32:20 CEST 2014 x86_64 GNU/Linux
    Last edited by MariusMatutiae (2014-06-26 09:10:22)

    Problem solved, thanks to both of you guys. For some resason, I had a webcam.conf file in /etc/modules-load.d containing the single line *gspca*, which is not a module: both modprobe and insmod fail, because the correct module name is one of those listed in /lib/modules/`uname -r`/kernel/drivers/media/usb/gspca. They are called gspca_benq.ko       gspca_konica.ko and so on. I simply deleted the file since I  do not need it.
    As for backport drivers: this site, http://drvbp1.linux-foundation.org/~mcg … backports/ has the most recent versions of Linux drivers, backported so that older kernels can install them (I understand this is not a concern for fellow Archers). Whenever I need to upgrade (mostly on Debian) or downgrade (a few times on Arch, because an older version of a driver is free of a newly minted bug) I download these drivers, compile them and install them from source.

  • [Solved] Systemd user service and timer dbus error

    I have installed arch recently and added a few of my own services, for example the acpi_call commands and such. Now I want to create a systemd service that runs every 5 minutes and execute a script.
    I searched a lot and I found that I must use timers. I got the thing with the timers working, but because my script has to do with a specific user, I want it to run only every 5 minutes when i am logged in as that user.
    I tried to put the files in /etc/systemd/users, .config/local/users and all the possibilities but everytime i want to enable it, it says dbus connection refused.
    Can somebody please provide me a way to execute a systemd service every 5 minutes while I am logged in as a specific user?
    I did follow the wiki and created a dbus service and all. Everything works on that side but i can't enable my user service.
    thanks!
    Last edited by nopemopes (2015-03-25 11:10:06)

    jasonwryan wrote:
    What errors are you getting? https://bbs.archlinux.org/viewtopic.php?id=57855
    Not a Sysadmin issue, moving to NC...
    sorry, didn't mean to be incomplete.
    The error says "Failed to get D-Bus connection: Connection refused".
    I did what the wiki said: Create the dbus files, enable them and such.
    No i put my service files + timer in the places mentioned by the wiki but everytime i try to enable them, that error shows up.
    systemctl status dbus gives me all good
    dbus.service - D-Bus System Message Bus
    Loaded: loaded (/usr/lib/systemd/system/dbus.service; static; vendor preset: disabled)
    Active: active (running) since ma 2015-03-23 19:39:24 CET; 1h 18min ago
    Docs: man:dbus-daemon(1)
    Main PID: 246 (dbus-daemon)
    CGroup: /system.slice/dbus.service
    └─246 /usr/bin/dbus-daemon --system --address=systemd: --nofork --nopidfile --systemd-activation
    mrt 23 19:39:34 Jordy-Laptop dbus[246]: [system] Activating via systemd: service name='org.freedesktop.ModemManager1' unit='...ervice'
    mrt 23 19:39:34 Jordy-Laptop dbus[246]: [system] Activation via systemd failed for unit 'dbus-org.freedesktop.ModemManager1....ectory.
    mrt 23 19:39:34 Jordy-Laptop dbus[246]: [system] Activating via systemd: service name='org.freedesktop.ModemManager1' unit='...ervice'
    mrt 23 19:39:34 Jordy-Laptop dbus[246]: [system] Activation via systemd failed for unit 'dbus-org.freedesktop.ModemManager1....ectory.
    mrt 23 19:39:39 Jordy-Laptop dbus[246]: [system] Activating via systemd: service name='org.freedesktop.nm_dispatcher' unit='...ervice'
    mrt 23 19:39:39 Jordy-Laptop dbus[246]: [system] Successfully activated service 'org.freedesktop.nm_dispatcher'
    mrt 23 19:47:01 Jordy-Laptop dbus[246]: [system] Activating via systemd: service name='org.freedesktop.nm_dispatcher' unit='...ervice'
    mrt 23 19:47:01 Jordy-Laptop dbus[246]: [system] Successfully activated service 'org.freedesktop.nm_dispatcher'
    mrt 23 20:51:38 Jordy-Laptop dbus[246]: [system] Activating via systemd: service name='org.freedesktop.nm_dispatcher' unit='...ervice'
    mrt 23 20:51:38 Jordy-Laptop dbus[246]: [system] Successfully activated service 'org.freedesktop.nm_dispatcher'
    that's the log for dbus and these are my files:
    drive_sync.service
    [Unit]
    Description=Drive sync
    [Service]
    Type=simple
    ExecStart=drive_script.sh
    drive_sync.timer
    [Unit]
    Description=Drive sync
    [Service]
    Type=simple
    ExecStart=drive_script.sh
    these files are located in ~/.config/systemd/user
    Last edited by nopemopes (2015-03-23 20:00:55)

  • [SOLVED] no-ip2 service fails to update ip

    Hey,
    Here is some info from my system:
    /etc ⮀systemctl status noip2.service
    noip2.service - No-IP Dynamic DNS Update Client
          Loaded: loaded (/usr/lib/systemd/system/noip2.service; enabled)
          Active: active (running) since Sat 2013-01-19 10:49:21 CET; 10h ago
         Process: 397 ExecStart=/usr/bin/noip2 -c /etc/no-ip2.conf (code=exited, status=0/SUCCESS)
        Main PID: 399 (noip2)
          CGroup: name=systemd:/system/noip2.service
              └─399 /usr/bin/noip2 -c /etc/no-ip2.conf
    /etc ⮀ l | grep no-ip2
    -rw-r--r--  1 root root  152 Dec 30 21:30 no-ip2.conf
    So my service is running, but i don't get my ip updated...
    I found this topic - https://bbs.archlinux.org/viewtopic.php … 3#p1134203
    but I don't know what does "run noip2 -C as root" means...all I did was enable the service, so "I" don't run anything...do I need to configure the service somehow?
    Are permissions for the no-ip2.conf ok?
    Thanks,
    developej
    Last edited by developej (2013-02-24 07:49:24)

    well, i rerun noip2 configure, entered username and pw (like i did 3 times before), left the default time of 30 minutes
    then i changed permissions before starting the service (of /etc/no-ip2.conf) to 644
    started the service and here is what the journal is saying:
    Feb 16 18:03:42 **** noip2[3491]: > GET http://ip1.dynupdate.no-ip.com/ HTTP/1.0
    Feb 16 18:03:42 **** noip2[3491]: > User-Agent: Linux-DUC/2.1.9
    Feb 16 18:03:42 **** noip2[3491]: >
    Feb 16 18:03:43 **** noip2[3491]: < HTTP/1.1 200 OK
    Feb 16 18:03:43 **** noip2[3491]: < Date: Sat, 16 Feb 2013 17:03:42 GMT
    Feb 16 18:03:43 **** noip2[3491]: < Server: Apache/2
    Feb 16 18:03:43 **** noip2[3491]: < Content-Length: 14
    Feb 16 18:03:43 **** noip2[3491]: < Connection: close
    Feb 16 18:03:43 **** noip2[3491]: < Content-Type: text/html; charset=UTF-8
    Feb 16 18:03:43 **** noip2[3491]: <
    Feb 16 18:03:43 **** noip2[3491]: < **.***.***.***
    Feb 16 18:03:43 **** noip2[3491]: ! Our NAT IP address is **.***.***.***
    Feb 16 18:03:43 **** noip2[3491]: ! Last_IP_Addr = **.***.***.***, IP = **.***.***.***
    Feb 16 18:33:43 **** noip2[3491]: > GET http://ip1.dynupdate.no-ip.com/ HTTP/1.0
    Feb 16 18:33:43 **** noip2[3491]: > User-Agent: Linux-DUC/2.1.9
    Feb 16 18:33:43 **** noip2[3491]: >
    Feb 16 18:33:43 **** noip2[3491]: < HTTP/1.1 200 OK
    Feb 16 18:33:43 **** noip2[3491]: < Date: Sat, 16 Feb 2013 17:33:43 GMT
    Feb 16 18:33:43 **** noip2[3491]: < Server: Apache/2
    Feb 16 18:33:43 **** noip2[3491]: < Content-Length: 14
    Feb 16 18:33:43 **** noip2[3491]: < Connection: close
    Feb 16 18:33:43 **** noip2[3491]: < Content-Type: text/html; charset=UTF-8
    Feb 16 18:33:43 **** noip2[3491]: <
    Feb 16 18:33:43 **** noip2[3491]: < **.***.***.***
    Feb 16 18:33:43 **** noip2[3491]: ! Our NAT IP address is **.***.***.***
    Feb 16 18:33:43 **** noip2[3491]: ! Last_IP_Addr = **.***.***.***, IP = **.***.***.***
    it looks fine...i just don't know what got it fixed (if it is really fixed, will see how it goes with time)
    thanks for your help, lucke

  • [SOLVED] systemd: autostart service last, at login screen

    hi
    I don't use X, so no .xinitrc, but I'd like to run a script after boot when it reaches the terminal login.
    In particular, the script is a simple beep command to play a sound.
    I tried this
    [Unit]
    Description=welcome
    After=multi-user.target
    [Service]
    Type=oneshot
    ExecStart=/usr/bin/beep -f 1000 -l 200 -n -f 1200 -l 200 -n -f 2000 -l 120
    [Install]
    but can't even enable it
    any suggestions? thanks
    Last edited by v43 (2014-01-19 13:50:56)

    because of the empty [Install] section
    EDIT:
    I tried adding the regular WantedBy=multi-user.target in the [Install], and it works!!
    but why? how can this service be required by the multi-user.target and also be called after it?
    [Unit]
    Description=welcome
    After=multi-user.target
    [Service]
    Type=oneshot
    ExecStart=/usr/bin/beep -f 1000 -l 200 -n -f 1200 -l 200 -n -f 2000 -l 120
    [Install]
    WantedBy=multi-user.target
    Last edited by v43 (2014-01-19 13:49:31)

Maybe you are looking for

  • Safari displays messages in Outlook Web Access (OWA)  incorrectly

    I use Safari on my Iphone to view/process my Outlook email. It is a bit cumbersom, but works. However, just recently, it changed. Now, when I open an email, if I press "Reply" (agian this is an OWA) button, it creates a reply, but only shows the orgi

  • How do I install Flash Player for Firefox on Windows 8?

    I installed Windows 8 today on my Intel Core i3 6GB RAM 64-bit machine, and cannot get Firefox 18.0.1 to run Flash. I kept getting "PlayerPlugin_11_5_502_146.exe" memory errors. I've gone to http://labs.adobe.com/downloads/flashplayer.html and tried

  • How to detect Current OS of client's PC ???

    Hi, Can anyone help me out to detect OS of Client PC ??? I am developing JSF application. I want to know that if anyone opens my site then the OS of that perticular PC should be detected. Can anyone help me out to solve this ???? Thanks in advance...

  • Changing GL Code for "Clring Account Revenue from Asst Sale" (TCode: AO90)

    Dear Experts, We have a requirement to change "Clearing Account Revenue from Asset Sale" from currently used GL Account (Eg; 22840020) with another GL account (Eg; 22840022).  Both these GL Accounts are Balance Sheet Accounts. We have created require

  • Question on FileWriter and byte requestBytes[]

    if I have string Content, I can use the following code to write them to csv file byte requestBytes[] = Content.getBytes(); ByteArrayInputStream bis = new ByteArrayInputStream(requestBytes); res.reset(); res.setContentType("application/text"); res.set