[Solved] systemd - Auto starting programs under specific tty

Is there any way to start a program on an empty tty?
Currently i run htop on tty11 and a log on tty12 using the default startup scripts with something like this,
htop:2345:respawn:/usr/bin/htop -d=10 > /dev/tty11
I've tried played around with systemd for a while but can't get it working. There doesn't seem to any documentation for launching anything except additional gettys, so i tried to modify one of the .service file for htop but didn't make any progress.
Does anyone else know how to get this working?
Thanks
Last edited by CaseMonster (2011-11-02 23:34:20)

Okay I figured out how to properly run services on systemd, here's the newest .service file
[Unit]
Description=htop on tty11
After=dev-tty11.device systemd-user-sessions.service
[Service]
ExecStart=/usr/bin/htop -d=100 > /dev/tty11 < /dev/tty11
Type=oneshot
[Install]
WantedBy=multi-user.target
And when running i get this
systemctl status htop.service
htop.service - htop on tty11
      Loaded: loaded (/lib/systemd/system/htop.service; enabled)
      Active: failed since Wed, 02 Nov 2011 02:57:08 -0500; 1s ago
     Process: 1452 ExecStart=/usr/bin/htop -d=100 > /dev/tty11 < /dev/tty11 (code=exited, status=1/FAILURE)
      CGroup: name=systemd:/system/htop.service

Similar Messages

  • I am need to disable an auto start program on my iTunes on my mini Mac

    I am need to disable an auto start program on my iTunes on my mini Mac

    Is there a way to have itunes delete the WMA file after creating mp3 copy?
    No.  But after the MP3s are created and you are satisfied that things went OK, just delete the WMAs manually and say "Good Riddance."
    You can use an MP3 in multiple players, but you need to turn off any features that automatically change or move files, since one player will change something that messes up the other:
    In iTunes, that means go to Edit > Preferences > Advanced and uncheck "Keep..." and "Copy..." 
    In Windows Media Player, that means go to Tools > Options > Library, and uncheck everything that starts with a verb such as "Rename...," "Rearrange...," etc.

  • [SOLVED] systemd/User, starting a Dependent service

    I am missing something simple here.  I have two services.  Once is dependent on the other.
    I got the first service to start with:
    $ cat ~/.config/systemd/user/[email protected]
    [Unit]
    Description=Syncthing - Open Source Continuous File Synchronization for %I
    Documentation=https://github.com/syncthing/syncthing/wiki
    After=network.target
    [Service]
    #User=%i
    Environment=STNORESTART=yes
    ExecStart=/usr/bin/syncthing -no-browser -logflags=0
    Restart=on-failure
    SuccessExitStatus=2 3 4
    RestartForceExitStatus=3 4
    [Install]
    #WantedBy=multi-user.target
    WantedBy=default.target
    This autostarts upon logging in with i3 and gnome.  No problem (now).
    The problem I have is with the notifier/watcher:
    $ cat ~/.config/systemd/user/[email protected]
    [Unit]
    Description=Syncthing Inotify File Watcher for %I
    Documentation=https://github.com/syncthing/syncthing-inotify/blob/master/README.md
    After=network.target [email protected]
    [email protected]
    [Service]
    #User=%i
    ExecStart=/usr/bin/syncthing-inotify -logflags=0
    SuccessExitStatus=2
    Restart=on-failure
    ProtectSystem=full
    ProtectHome=read-only
    [Install]
    #WantedBy=multi-user.target
    WantedBy=default.target
    Installed it into my namespace, like I did with the parent service:
    $ systemctl --user enable [email protected]
    On system startup/login, the service is "Dead (inactive)."
    But, I can start it manually:
    $ systemctl --user start [email protected]
    And the status of the service shows it logging and working, picking up changes, etc.
    I must be missing a configuration parameter in the service file.
    Last edited by eduncan911 (2015-05-25 14:39:38)

    mauritiusdadd wrote:
    Just a shot in the dark, but try to change the After= and Requires= lines in [email protected] to
    After=network.target syncthing@%i.service
    Requires=syncthing@%i.service
    You know how you stay up late and everything you do right seems to be wrong?
    When I ran:
    systemctl status [email protected]
    ...it showed inactive (dead) and is the reason I made this thread. 
    Changed it to this:
    systemctl --user status [email protected]
    Allowed me to see it started.  *head smack*
    And btw, I tried "syncthing@%i.service" and it worked too!  I reverted back to "[email protected]" to verify %i fixed it, but it started as well as before.  So "%i" seems agnostic and would work as well.

  • Want to change auto-start programs

    Hi everyone,
    I want to control which programs automatically open when I start my mbp. I've tried finding the 'accounts' pane in system preferences but it is not there ('Bluetooth' is the top of the list when I sort it alphabetically).
    Would appreciate any help, have looked all over the forums but can't find any solutions.
    Thanks guys!
    Rob

    It sounds to me that you may be experiencing Lion's "resume" feature.
    There is a checkbox in the shutdown/restart dialog window which controls whether currently open applications are to be re-opened at startup.
    charlie

  • [SOLVED] Deluge Auto Start Daemon

    Hi All,
    I've just installed Deluge (for downloading torrents) on my headless server for the first time and got it working very nicely The only problem is, I cant get the daemon and the web-ui to start up with the system, would anyone know how I could achieve this? On the deluge site, they have a section of initscripts (http://dev.deluge-torrent.org/wiki/User … nitScripts) but I cant find anything for Arch
    Thanks,
    Luke
    EDIT: Didnt notice everything was already there to have it work! Added deluge and deluge-web to the daemons list in rc.conf
    Last edited by luke.browning (2010-06-27 11:26:58)

    I ran deluged and deluge.
    Then when I ran deluge-web I got the following output-
    [faytaliti@node-1 ~]$ deluge-web -p 8235 --ssl
    Traceback (most recent call last):
    File "/usr/bin/deluge-web", line 8, in <module>
    load_entry_point('deluge==1.2.3', 'console_scripts', 'deluge-web')()
    File "/usr/lib/python2.6/site-packages/deluge/ui/web/web.py", line 132, in start
    web.start()
    File "/usr/lib/python2.6/site-packages/deluge/ui/web/web.py", line 104, in start
    import server
    File "/usr/lib/python2.6/site-packages/deluge/ui/web/server.py", line 58, in <module>
    from deluge.ui.web.auth import Auth
    File "/usr/lib/python2.6/site-packages/deluge/ui/web/auth.py", line 61, in <module>
    from deluge.ui.web.json_api import JSONComponent, export
    File "/usr/lib/python2.6/site-packages/deluge/ui/web/json_api.py", line 54, in <module>
    from deluge.ui.web.common import _
    File "/usr/lib/python2.6/site-packages/deluge/ui/web/common.py", line 37, in <module>
    from mako.template import Template as MakoTemplate
    ImportError: No module named mako.template
    Checking with the ps command I got-
    [faytaliti@node-1 ~]$ ps -ef | grep deluge-web
    1000 2214 2157 0 14:02 pts/1 00:00:00 grep deluge-web
    Thus it is clear that deluge is not running... Now what?

  • [SOLVED]systemd won't start my /etc/rc.local

    I was trying to emulate rc.local behaviour with this:
    /usr/lib/systemd/system/rc-local.service
    [Unit]
    Description=/etc/rc.local Compatibility
    ConditionPathExists=/etc/rc.local
    [Service]
    Type=forking
    ExecStart=/etc/rc.local start
    TimeoutSec=0
    StandardOutput=tty
    RemainAfterExit=yes
    SysVStartPriority=99
    [Install]
    WantedBy=multi-user.target
    and my
    /etc/rc-local
    looks like this
    modprobe -r samsung_laptop
    But it's not working. When I execute sudo systemctl status rc-local.service I get
    rc-local.service - /etc/rc.local Compatibility
    Loaded: loaded (/usr/lib/systemd/system/rc-local.service; enabled)
    Active: failed (Result: exit-code) since Fri 2013-03-29 17:54:16 CET; 5min ago
    Process: 745 ExecStart=/etc/rc.local start (code=exited, status=203/EXEC)
    Last edited by Neky (2013-03-29 18:31:39)

    Why do you have "start" as an argument to /etc/rc.local?
    Also, for what you are trying to achieve, why not simply blacklist the module in /etc/modrpobe.d?  Then it would not be loaded under any circumstances.  Also if this is out of fear of the UEFI bug, I believe that for this particular module, there has been a patch included in the latest kernels that protects this from happening by not allowing writes to the NVRAM if it is 50% full or more.

  • [SOLVED] How to tell systemd to start decrypting as early as possible?

    Hello there,
    now that gnome got updated to 3.6 I had to finally convert to systemd. My system is encrypted and some of the data (for example my music collection) is on another hard disk which is also encrypted, although it cat be opened with a key file that is located in my root filesystem (so I only have to type in the keyphrase for my root at boot).
    When I tried to use systemd a few weeks ago, this was a problem. According to the wiki-article, I had two possibilities:
    1) simply have the appropriate entries in /etc/crypttab and /etc/fstab. This is problematic since then it has to be completely mounted for fs-local.service (or something like that) to be available, so for example gdm gets started rather late.
    2) add x-systemd-automount to the mount options. Gdm is then started earlier, but my music program (listen) takes a long time to start, since the unlock and mount only gets started as soon as it is accessed. Also, gdm seems to take a long time to start, so I suspect that it is also trying to access something and gets blocked.
    In general, I like the idea that any access to the file system is blocked until it is ready - this prevents listen from going through my playlist thinking that everything is deleted. But I'd like to tell systemd to start the unlocking as soon as it is started - maybe even before the root filesystem is remounted, since this only needs read access to /. At the moment I have a script in /etc/rc.d that does the unlocking, checking, and unlocking. This is usually finished before listen starts, but if the partition needs checking this will not be the case. Has anyone understood systemd good enough to have a suggestion?
    Last edited by viktordick (2014-11-06 12:46:27)

    I do something similar with my /home partition:
    LABEL=HOME              /home           ext4    x-systemd-automount               0       2
    Notice that I do not use the "noauto" option. This means that systemd will mount the partition as early as possible, but it will not wait for it to finish mounting (merely buffer any accesses using automount).

  • Auto start for all services under solaris 10 ?

    Hi,
    Can I set the oracle auto start ? include listener, sqlplus...etc.
    Thanks.

    Hi,
    Yes I am using oracle as id.
    here is the output:
    solaris10% pwd
    /export/home/oracle/u01/app/oracle/oracle/product/10.2.0/db_3/bin
    solaris10% sh -x ./dbstart
    + :
    LOGMSG=logger -puser.alert -s
    + trap exit 1 2 3
    SAVE_LLP=/export/home/oracle/u01/app/oracle/oracle/product/10.2.0/db_3/lib:/export/home/oracle/u01/app/oracle/oracle/product/10.2.0/db_3/network/lib
    ORACLE_HOME_LISTNER=
    + [ ! ]
    ./dbstart: test: argument expected
    solaris10%
    By the way, here is my environment variables setting:
    solaris10% env
    HOME=/export/home/oracle
    PATH=/export/home/oracle/u01/app/oracle/oracle/product/10.2.0/db_3/bin:/usr/bin:LOGNAME=oracle
    HZ=
    TERM=xterm
    SHELL=/bin/csh
    MAIL=/var/mail/oracle
    LANG=C
    LC_CTYPE=C
    LC_ALL=C
    TZ=Hongkong
    PWD=/export/home/oracle/u01/app/oracle/oracle/product/10.2.0/db_3/bin
    USER=oracle
    DISPLAY=solaris10:0.0
    ORACLE_BASE=/export/home/oracle/u01/app/oracle
    ORACLE_SID=orclnew
    TMP=/export/home/oracle/tmp
    TMPDIR=/export/home/oracle/tmp
    ORACLE_HOME=/export/home/oracle/u01/app/oracle/oracle/product/10.2.0/db_3
    LD_LIBRARY_PATH=/export/home/oracle/u01/app/oracle/oracle/product/10.2.0/db_3/lib:/export/home/oracle/u01/app/oracle/oracle/product/10.2.0/db_3/network/lib
    ORATAB=/var/opt/oracle/oratab
    solaris10%
    Thanks.

  • Systemd/user unit enabled but not auto-starting

    Hi,
    I enabled the systemd/user devmon unit but after login it shows
    ~> systemctl --user status
    ● marchine
    State: running
    Jobs: 0 queued
    Failed: 0 units
    Since: Fri 2014-05-16 01:10:37 CEST; 2min 53s ago
    CGroup: /user.slice/user-1000.slice/[email protected]
    ├─466 /usr/lib/systemd/systemd --user
    └─468 (sd-pam)
    ~> systemctl --user status devmon
    ● devmon.service - devmon Service
    Loaded: loaded (/home/a/.config/systemd/user/devmon.service; enabled)
    Active: inactive (dead)
    which I find strange because apparently the enabling worked but also manually starting devmon causes no problems at all:
    a@marchine ~> systemctl --user start devmon
    a@marchine ~> systemctl --user status devmon
    ● devmon.service - devmon Service
    Loaded: loaded (/home/a/.config/systemd/user/devmon.service; enabled)
    Active: active (running) since Fri 2014-05-16 01:18:20 CEST; 7s ago
    Main PID: 827 (devmon)
    CGroup: /user.slice/user-1000.slice/[email protected]/devmon.service
    ├─827 /bin/bash /usr/bin/devmon
    └─960 /usr/sbin/udevil --monitor
    I'm not saying that I surely made no mistakes in configuring systemd, I'm a newbie after all, I just can't really tell which part exactly causes the problem here.
    Thanks, y

    Strangely devmon.service does not appear in the log of the boot process at all.  However, it says something about the user session at some point, if that helps:
    May 16 22:16:43 marchine systemd[1]: Starting user-1000.slice.
    -- Defined-By: systemd
    -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
    May 16 22:16:44 marchine systemd[1]: Cannot add dependency job for unit autologin-on-boot.service, ignoring: Unit autologin-on-boot.service failed to load: No such file or directory.
    May 16 22:16:44 marchine systemd[1]: Started Permit User Sessions.
    -- Subject: Unit systemd-user-sessions.service has finished start-up
    -- Defined-By: systemd
    -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
    -- Unit systemd-user-sessions.service has finished starting up.
    But after starting devmon manually, the log says something about multiple instances:
    May 16 22:27:22 marchine systemd[260]: Starting devmon Service...
    -- Subject: Unit UNIT has begun with start-up
    -- Defined-By: systemd
    -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
    -- Unit UNIT has begun starting up.
    May 16 22:27:22 marchine systemd[260]: Started devmon Service.
    -- Subject: Unit UNIT has finished start-up
    -- Defined-By: systemd
    -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
    -- Unit UNIT has finished starting up.
    -- The start-up result is done.
    May 16 22:27:22 marchine devmon[1416]: WARNING: multiple instances of devmon appear to be running (my pid=1416):
    May 16 22:27:22 marchine devmon[1416]: 1416 ? Ss 0:00 /bin/bash /usr/bin/devmon
    The service file looks like this (I didn't change anything):
    [Unit]
    Description=devmon Service
    [Service]
    Type=simple
    User=%i
    # Set DISPLAY for popup dialogs
    Environment=DISPLAY=:0
    EnvironmentFile=/etc/conf.d/devmon
    ExecStart=/usr/bin/devmon $ARGS
    [Install]
    WantedBy=multi-user.target
    As I said before, I found a workaround which does it for me at the moment.  I'm happy about any new informations which may help me to deal with similar problems in the future, but it's no emergency.
    Thanks, y

  • How can I delay auto-start of a program at boot?

    Hi,
    I have set BOINC-manager as auto-start item in system preferences. However, I would like to set a delay to the start of BOINC-manager of e.g. 3 minutes after startup of the computer so that Tech Tool Pro can finish it's checks before BOINC starts.
    Is there a way to do that?
    Thanks in advance!

    You can create an Applescript looking like this:
    delay 120
    tell application "BOINC-manager" to launch
    You need to save the script "As Application", then save it somewhere standardized. Open your System Preferences>Accounts>Startup Items and add the script to the list.

  • [SOLVED] systemd 208 journald process CPU spike on LXC container start

    Hi,
    The problem is that whenever I start an LXC container, systemd-journald process goes on 100% CPU utilization and only stops when I stop the container.
    Setup details:
    % cat /var/lib/lxc/projects/config
    lxc.network.type = veth
    lxc.arch = x86_64
    lxc.utsname = projects
    lxc.network.link = virbr3
    lxc.network.flags = up
    lxc.network.ipv4 = 192.168.200.11
    lxc.rootfs = /mnt/lxc/projects
    lxc.pts = 1000
    lxc.autodev = 1
    lxc.cgroup.memory.limit_in_bytes = 256M
    The rootfs indicated is on a logical volume, /dev/mapper/virtual-projects.
    Details of journal when the spike happened:
    -- Logs begin at Sun 2013-08-04 07:19:25 IST. --
    Oct 05 09:03:30 core systemd[1]: Unit [email protected] entered failed state.
    Oct 05 09:03:30 core kernel: virbr3: port 2(vethl7BeWT) entered disabled state
    Oct 05 09:03:30 core kernel: device vethl7BeWT left promiscuous mode
    Oct 05 09:03:30 core kernel: virbr3: port 2(vethl7BeWT) entered disabled state
    Oct 05 09:03:31 core ntpd[813]: Deleting interface #13 vethl7BeWT, fe80::fcf2:f2ff:fea0:9473#123, interface stats: received=0, sent=0, dropped=0, active_time=11 secs
    Oct 05 09:03:31 core ntpd[813]: peers refreshed
    Oct 05 09:03:40 core dbus-daemon[533]: dbus[533]: [system] Activating via systemd: service name='org.freedesktop.ModemManager1' unit='dbus-org.freedesktop.ModemManager1.service'
    Oct 05 09:03:40 core dbus[533]: [system] Activating via systemd: service name='org.freedesktop.ModemManager1' unit='dbus-org.freedesktop.ModemManager1.service'
    Oct 05 09:03:40 core dbus[533]: [system] Activation via systemd failed for unit 'dbus-org.freedesktop.ModemManager1.service': Unit dbus-org.freedesktop.ModemManager1.service failed to load: No such file or directory.
    Oct 05 09:03:40 core dbus-daemon[533]: dbus[533]: [system] Activation via systemd failed for unit 'dbus-org.freedesktop.ModemManager1.service': Unit dbus-org.freedesktop.ModemManager1.service failed to load: No such file or directory.
    Oct 05 09:05:30 core systemd[1]: Starting Linux Container projects...
    Oct 05 09:05:30 core systemd[1]: Started Linux Container projects.
    Oct 05 09:05:30 core systemd-sysctl[4562]: Overwriting earlier assignment of kernel/sysrq in file '/etc/sysctl.d/zz-sysctl.conf'.
    Oct 05 09:05:30 core kernel: device vethmHU7wo entered promiscuous mode
    Oct 05 09:05:30 core kernel: IPv6: ADDRCONF(NETDEV_UP): vethmHU7wo: link is not ready
    Oct 05 09:05:30 core NetworkManager[521]: <warn> /sys/devices/virtual/net/vethSIUSbq: couldn't determine device driver; ignoring...
    Oct 05 09:05:30 core systemd-sysctl[4564]: Overwriting earlier assignment of kernel/sysrq in file '/etc/sysctl.d/zz-sysctl.conf'.
    Oct 05 09:05:30 core kernel: virbr3: topology change detected, propagating
    Oct 05 09:05:30 core kernel: virbr3: port 2(vethmHU7wo) entered forwarding state
    Oct 05 09:05:30 core kernel: virbr3: port 2(vethmHU7wo) entered forwarding state
    Oct 05 09:05:30 core kernel: virbr3: port 2(vethmHU7wo) entered disabled state
    Oct 05 09:05:30 core NetworkManager[521]: <warn> /sys/devices/virtual/net/vethmHU7wo: couldn't determine device driver; ignoring...
    Oct 05 09:05:30 core kernel: IPv6: ADDRCONF(NETDEV_CHANGE): vethmHU7wo: link becomes ready
    Oct 05 09:05:30 core kernel: virbr3: topology change detected, propagating
    Oct 05 09:05:30 core kernel: virbr3: port 2(vethmHU7wo) entered forwarding state
    Oct 05 09:05:30 core kernel: virbr3: port 2(vethmHU7wo) entered forwarding state
    Oct 05 09:05:30 core libvirtd[809]: nl_recv returned with error: No buffer space available
    Oct 05 09:05:30 core upowerd[660]: (upowerd:660): UPower-Linux-WARNING **: treating add event as change event on /org/freedesktop/UPower/devices/line_power_AC0
    Oct 05 09:05:30 core systemd-logind[516]: Watching system buttons on /dev/input/event3 (Power Button)
    Oct 05 09:05:30 core upowerd[660]: (upowerd:660): UPower-Linux-WARNING **: treating add event as change event on /org/freedesktop/UPower/devices/battery_BAT0
    Oct 05 09:05:30 core systemd-logind[516]: Watching system buttons on /dev/input/event5 (Video Bus)
    Oct 05 09:05:30 core systemd-logind[516]: Watching system buttons on /dev/input/event2 (Sleep Button)
    Oct 05 09:05:30 core systemd-logind[516]: Watching system buttons on /dev/input/event1 (Lid Switch)
    Oct 05 09:05:30 core systemd-logind[516]: Watching system buttons on /dev/input/event4 (Video Bus)
    Oct 05 09:05:30 core mtp-probe[4711]: checking bus 3, device 4: "/sys/devices/pci0000:00/0000:00:1a.0/usb3/3-1/3-1.2"
    Oct 05 09:05:30 core mtp-probe[4712]: checking bus 3, device 5: "/sys/devices/pci0000:00/0000:00:1a.0/usb3/3-1/3-1.4"
    Oct 05 09:05:30 core mtp-probe[4711]: bus: 3, device: 4 was not an MTP device
    Oct 05 09:05:30 core mtp-probe[4712]: bus: 3, device: 5 was not an MTP device
    Oct 05 09:05:30 core systemd-udevd[4561]: error opening ATTR{/sys/devices/pci0000:00/0000:00:1a.0/usb3/3-1/3-1.4/3-1.4:1.0/host6/scsi_host/host6/link_power_management_policy} for writing: No such file or directory
    Oct 05 09:05:32 core ntpd[813]: Listen normally on 14 vethmHU7wo fe80::fcf0:74ff:fe68:aade UDP 123
    Oct 05 09:05:32 core ntpd[813]: peers refreshed
    Oct 05 09:05:32 core ntpd[813]: new interface(s) found: waking up resolver
    Oct 05 09:05:40 core dbus-daemon[533]: dbus[533]: [system] Activating via systemd: service name='org.freedesktop.ModemManager1' unit='dbus-org.freedesktop.ModemManager1.service'
    Oct 05 09:05:40 core dbus[533]: [system] Activating via systemd: service name='org.freedesktop.ModemManager1' unit='dbus-org.freedesktop.ModemManager1.service'
    Oct 05 09:05:40 core dbus[533]: [system] Activation via systemd failed for unit 'dbus-org.freedesktop.ModemManager1.service': Unit dbus-org.freedesktop.ModemManager1.service failed to load: No such file or directory.
    Oct 05 09:05:40 core dbus-daemon[533]: dbus[533]: [system] Activation via systemd failed for unit 'dbus-org.freedesktop.ModemManager1.service': Unit dbus-org.freedesktop.ModemManager1.service failed to load: No such file or directory.
    Oct 05 09:06:15 core kernel: EXT4-fs (dm-10): re-mounted. Opts: commit=600
    Oct 05 09:06:15 core kernel: EXT4-fs (dm-12): re-mounted. Opts: acl,commit=600
    Oct 05 09:06:15 core kernel: EXT4-fs (dm-18): re-mounted. Opts: commit=600
    Oct 05 09:06:15 core kernel: EXT4-fs (sda1): re-mounted. Opts: commit=600
    Oct 05 09:06:16 core kernel: EXT4-fs (sda4): re-mounted. Opts: acl,commit=600
    Oct 05 09:06:21 core kernel: EXT4-fs (dm-10): re-mounted. Opts: commit=0
    Oct 05 09:06:21 core kernel: EXT4-fs (dm-12): re-mounted. Opts: acl,commit=0
    Oct 05 09:06:21 core kernel: EXT4-fs (dm-18): re-mounted. Opts: commit=0
    Oct 05 09:06:21 core kernel: EXT4-fs (sda1): re-mounted. Opts: commit=0
    Oct 05 09:06:28 core kernel: EXT4-fs (dm-10): re-mounted. Opts: commit=600
    Oct 05 09:06:28 core kernel: EXT4-fs (dm-12): re-mounted. Opts: acl,commit=600
    Oct 05 09:06:28 core kernel: EXT4-fs (dm-18): re-mounted. Opts: commit=600
    Oct 05 09:06:28 core kernel: EXT4-fs (sda1): re-mounted. Opts: commit=600
    Oct 05 09:06:28 core kernel: EXT4-fs (sda4): re-mounted. Opts: acl,commit=600
    Oct 05 09:06:31 core kernel: EXT4-fs (dm-10): re-mounted. Opts: commit=0
    Oct 05 09:06:31 core kernel: EXT4-fs (dm-12): re-mounted. Opts: acl,commit=0
    Oct 05 09:06:31 core kernel: EXT4-fs (dm-18): re-mounted. Opts: commit=0
    Oct 05 09:06:31 core kernel: EXT4-fs (sda1): re-mounted. Opts: commit=0
    Oct 05 09:06:38 core systemd[1]: Stopping Linux Container projects...
    Oct 05 09:06:38 core systemd[1]: [email protected]: main process exited, code=exited, status=137/n/a
    Oct 05 09:06:38 core systemd[1]: Stopped Linux Container projects.
    Oct 05 09:06:38 core systemd[1]: Unit [email protected] entered failed state.
    Oct 05 09:06:38 core kernel: virbr3: port 2(vethmHU7wo) entered disabled state
    Oct 05 09:06:38 core kernel: device vethmHU7wo left promiscuous mode
    Oct 05 09:06:38 core kernel: virbr3: port 2(vethmHU7wo) entered disabled state
    Oct 05 09:06:39 core ntpd[813]: Deleting interface #14 vethmHU7wo, fe80::fcf0:74ff:fe68:aade#123, interface stats: received=0, sent=0, dropped=0, active_time=67 secs
    Oct 05 09:06:39 core ntpd[813]: peers refreshed
    Nothing really leaps out to me.
    This only happens on Systemd-208. Rolling back to systemd-207 resolved the issue for now, but I can't help but wonder if I won't have this problem again on systemd-209 or whatever. Is there any additional configuration that I need to do in order to get LXC working properly with systemd 208+?
    Also, I don't know if this is relevant, but I got some filesystem permissions warnings on upgrading (and later downgrading) systemd.
    Last edited by railmaniac (2013-10-12 14:03:47)

    Some journal entries from the guest
    There's a bunch of these:
    ct 12 18:52:24 projects systemd-udevd[30]: Failed to apply ACL on /dev/dri/card0: No such file or directory
    Oct 12 18:52:24 projects systemd-udevd[38]: Failed to apply ACL on /dev/snd/hwC0D3: No such file or directory
    Oct 12 18:52:24 projects systemd-udevd[42]: Failed to apply ACL on /dev/snd/pcmC0D0c: No such file or directory
    Oct 12 18:52:24 projects systemd-udevd[37]: Failed to apply ACL on /dev/snd/hwC0D0: No such file or directory
    Oct 12 18:52:24 projects systemd-udevd[44]: Failed to apply ACL on /dev/snd/pcmC0D3p: No such file or directory
    Oct 12 18:52:24 projects systemd-udevd[43]: Failed to apply ACL on /dev/snd/pcmC0D0p: No such file or directory
    Oct 12 18:52:24 projects systemd-udevd[31]: Failed to apply ACL on /dev/snd/controlC0: No such file or directory
    Oct 12 18:52:24 projects systemd-udevd[35]: inotify_add_watch(7, /dev/sda, 10) failed: No such file or directory
    Oct 12 18:52:24 projects systemd-udevd[36]: Failed to apply ACL on /dev/sr0: No such file or directory
    Oct 12 18:52:24 projects systemd-udevd[34]: Failed to apply ACL on /dev/sg1: No such file or directory
    Oct 12 18:52:24 projects systemd-udevd[28]: Error, opening device '/dev/input/event12': No such file or directory
    Oct 12 18:52:24 projects systemd-udevd[32]: Failed to apply ACL on /dev/video0: No such file or directory
    Oct 12 18:52:24 projects systemd-udevd[25]: inotify_add_watch(7, /dev/sdb, 10) failed: No such file or directory
    Oct 12 18:52:24 projects systemd-udevd[33]: Failed to apply ACL on /dev/kvm: No such file or directory
    Oct 12 18:52:24 projects systemd-udevd[29]: inotify_add_watch(7, /dev/sda1, 10) failed: No such file or directory
    Oct 12 18:52:24 projects systemd[1]: Listening on D-Bus System Message Bus Socket.
    Oct 12 18:52:24 projects systemd-udevd[30]: inotify_add_watch(7, /dev/sda2, 10) failed: No such file or directory
    Oct 12 18:52:24 projects systemd-udevd[27]: Failed to apply ACL on /dev/snd/timer: No such file or directory
    Oct 12 18:52:24 projects systemd[1]: Starting Sockets.
    Oct 12 18:52:24 projects systemd-udevd[35]: inotify_add_watch(7, /dev/sda4, 10) failed: No such file or directory
    Oct 12 18:52:24 projects systemd-udevd[31]: inotify_add_watch(7, /dev/sda3, 10) failed: No such file or directory
    And there's a bunch of these, which seems relevant since the logind part was changed in 208:
    Oct 12 18:52:24 projects systemd-logind[59]: New seat seat0.
    Oct 12 18:52:24 projects systemd[1]: Startup finished in 487ms.
    Oct 12 18:52:24 projects systemd-logind[59]: Failed to open event3: No such file or directory
    Oct 12 18:52:24 projects systemd-logind[59]: Failed to open event5: No such file or directory
    Oct 12 18:52:24 projects systemd-logind[59]: Failed to open event4: No such file or directory
    Oct 12 18:52:24 projects systemd-logind[59]: Failed to open event1: No such file or directory
    Oct 12 18:52:24 projects systemd-logind[59]: Failed to open event2: No such file or directory
    Oct 12 18:52:26 projects systemd-journal[64]: Permanent journal is using 87.6M (max 30.0M, leaving 1.1G of free 4.4G, current limit 30.0M).
    Oct 12 18:52:26 projects systemd-journal[64]: Journal started
    Oct 12 18:52:26 projects systemd[1]: systemd-journald.service: main process exited, code=exited, status=1/FAILURE
    Oct 12 18:52:26 projects systemd[1]: Unit systemd-journald.service entered failed state.
    Oct 12 18:52:26 projects systemd[1]: Starting Trigger Flushing of Journal to Persistent Storage...
    Oct 12 18:52:26 projects systemd[1]: Started Trigger Flushing of Journal to Persistent Storage.
    Hmm, just noticed it says systemd-journald exited with FAILURE. This is probably pretty informative to someone.

  • [SOLVED] systemd : services failing to start on boot

    I have removed sysvinit completely as per the systemd wiki pages.
    I don't usually re-boot very often so I'm not sure exactly when the problem started.
    I only noticed this problem about 4 or 5 days ago.
    But now whenever I reboot my machine 2 services fail consistently.
    adsl.service
    colord.service
    They both start flawlessly once I can log in at a console.
    I'm using kde and in the last couple of days, while trying to fix my problem, the kdm service has failed to start a couple of times too - saying there is no X server.
    Before switching to systemd I never had any of these problems using the old rc.conf method. My DAEMONS array had the adsl service start after the network service.
    I need some help and advice to find out what is causing the problem and how to fix it.
    Last edited by bhrgunatha (2012-10-25 05:44:22)

    Thanks. That seems plausible. So I've been snooping at the journal.
    journalctl -ab
    Oct 25 17:06:13 starch systemd[1]: Started Trigger Flushing of Journal to Persistent Storage.
    Oct 25 17:06:14 starch systemd[1]: Started Recreate Volatile Files and Directories.
    Oct 25 17:06:14 starch systemd[1]: Starting System Initialization.
    Oct 25 17:06:14 starch systemd[1]: Reached target System Initialization.
    Oct 25 17:06:14 starch systemd[1]: Starting CUPS Printing Service Sockets.
    Oct 25 17:06:14 starch systemd[1]: Listening on CUPS Printing Service Sockets.
    Oct 25 17:06:14 starch systemd[1]: Starting Console System Startup Logging...
    Oct 25 17:06:14 starch systemd[1]: Starting Restore Sound Card State...
    Oct 25 17:06:14 starch systemd[1]: Starting CUPS Printer Service Spool.
    Oct 25 17:06:14 starch systemd[1]: Started CUPS Printer Service Spool.
    Oct 25 17:06:14 starch systemd[1]: Starting D-Bus System Message Bus Socket.
    Oct 25 17:06:16 starch ntpd[381]: ntpd [email protected] Tue Aug 21 15:06:24 UTC 2012 (1)
    Oct 25 17:06:16 starch ntpd[413]: proto: precision = 0.156 usec
    Oct 25 17:06:17 starch ntpd[413]: ntp_io: estimated max descriptors: 1024, initial socket boundary: 16
    Oct 25 17:06:17 starch ntpd[413]: Listen and drop on 0 v4wildcard 0.0.0.0 UDP 123
    Oct 25 17:06:18 starch ntpd[413]: Listen and drop on 1 v6wildcard :: UDP 123
    Oct 25 17:06:18 starch ntpd[413]: Listen normally on 2 lo 127.0.0.1 UDP 123
    Oct 25 17:06:18 starch ntpd[413]: Listen normally on 3 lo ::1 UDP 123
    Oct 25 17:06:18 starch ntpd[413]: peers refreshed
    Oct 25 17:06:18 starch ntpd[413]: Listening on routing socket on fd #20 for interface updates
    Oct 25 17:06:18 starch dbus[384]: [system] Activating systemd to hand-off: service name='org.freedesktop.ColorManager' unit='colord.service'
    Oct 25 17:06:18 starch dbus[384]: [system] Successfully activated service 'org.freedesktop.systemd1'
    Oct 25 17:07:03 starch dbus[384]: [system] Successfully activated service 'org.freedesktop.ColorManager'
    Oct 25 17:07:03 starch dbus[384]: [system] Activating via systemd: service name='org.freedesktop.ColorManager' unit='colord.service'
    Oct 25 17:07:03 starch dbus[384]: [system] Successfully activated service 'org.freedesktop.ColorManager'
    Oct 25 17:07:04 starch kernel: r8169 0000:02:00.0: eth0: link down
    Oct 25 17:07:03 starch systemd[1]: Starting Manage, Install and Generate Color Profiles...
    Oct 25 17:07:03 starch systemd[1]: Started Manage, Install and Generate Color Profiles.
    Oct 25 17:07:03 starch systemd[1]: colord.service: main process exited, code=killed, status=6
    Oct 25 17:07:03 starch systemd[1]: Unit colord.service entered failed state.
    Oct 25 17:07:04 starch kernel: r8169 0000:02:00.0: eth0: link down
    Oct 25 17:07:04 starch kernel: IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
    Oct 25 17:07:04 starch kernel: PPP generic driver version 2.4.2
    Oct 25 17:07:04 starch cupsd[380]: Unknown directive DefaultAuthType on line 26.
    Oct 25 17:07:04 starch kernel: r8169 0000:02:00.0: eth0: link up
    Oct 25 17:07:04 starch kernel: IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
    Oct 25 17:07:04 starch pppoe-start[382]: TIMED OUT
    Oct 25 17:07:04 starch kernel: NET: Registered protocol family 24
    Oct 25 17:07:04 starch pppoe-start[382]: /usr/sbin/pppoe-start: line 193: 394 Terminated $CONNECT "$@" > /dev/null 2>&1
    That seems to confirm your theory.
    eth0 link is not up when attempting to start colord and adsl
    So the $64,000 question:
    How do I defer them until eth0 is ready?
    Or how can I force the eth0 link to be up before colord or adsl try to use it?
    Last edited by bhrgunatha (2012-10-25 01:33:36)

  • [SOLVED] systemd not alway starts dnsmasq and minidlna service

    Hi!
    After I've annoyed some of you (and hopefully helped others) with my threads on systemd I got systemd working. But; I still have one problem. Systemd seems to have trouble starting dnsmasq and minidlna.
    dnsmasq.service loaded failed failed A lightweight DHCP and caching DNS server
    [email protected] loaded active running Getty on tty1
    httpd.service loaded active running Apache Web Server
    logitechmediaserver.service loaded active running Logitech Media Server Daemon
    lvm.service loaded active exited LVM activation
    minidlna.service loaded failed failed minidlna server
    Sometimes they do load, sometimes not. Is there a way to find out why a service could not be started?
    btw
    systemctl start minidlna dnsmasq
    does start them perfectly
    Last edited by theking2 (2012-12-13 18:50:35)

    Yes, there is such a command systemctl status and it says
    Dec 11 20:54:44 janus systemd[1]: Starting A lightweight DHCP and caching DNS server...
    Dec 11 20:54:45 janus dnsmasq[308]: dnsmasq: syntax check OK.
    Dec 11 20:54:45 janus dnsmasq[335]: dnsmasq: failed to create listening socket for 172.16.0.8: Cannot assign requested address
    Dec 11 20:54:45 janus systemd[1]: dnsmasq.service: main process exited, code=exited, status=2/INVALIDARGUMENT
    Dec 11 20:54:45 janus systemd[1]: Failed to start A lightweight DHCP and caching DNS server.
    Dec 11 20:54:45 janus systemd[1]: Unit dnsmasq.service entered failed state
    and
    minidlna.service - minidlna server
    Loaded: loaded (/usr/lib/systemd/system/minidlna.service; enabled)
    Active: failed (Result: exit-code) since Tue, 2012-12-11 20:54:45 CET; 46s ago
    Process: 303 ExecStart=/usr/sbin/minidlna -P /var/run/minidlna/minidlna.pid (code=exited, status=255)
    CGroup: name=systemd:/system/minidlna.service

  • CRS on Redhat 5 auto-start problem

    Dear all
    Recently I tried to install Oracle 10gR2 on Redhat 5. I did research and took all the necessary actions to install it on Redhat. Everything went well, according to the documents and at the end of the installation, all the resources were up and running. However, after the install, only the VIP was up and ONS and GSD was in unknown format. When I stop the nodeapps and start it again, everything stars working. It seems that the problem is something to do with boot process. I tried to put some delay ( for OCR mount ) but still no luck. This is the result from crsd.log from node1 when node2 is down.. :
    2009-06-24 22:00:07.461: [ default][3594852768]0CRS Daemon Starting
    2009-06-24 22:00:07.461: [ CRSMAIN][3594852768]0Checking the OCR device
    2009-06-24 22:00:07.464: [ CRSMAIN][3594852768]0Connecting to the CSS Daemon
    2009-06-24 22:00:07.838: [ COMMCRS][1103116608]clsc_connect: (0x151f20d0) no listener at (ADDRESS=(PROTOCOL=ipc)(KEY=OCSSD_LL_rac1dr_crsdr))
    2009-06-24 22:00:07.838: [ CSSCLNT][3594852768]clsssInitNative: connect failed, rc 9
    2009-06-24 22:00:07.838: [  CRSRTI][3594852768]0CSS is not ready. Received status 3 from CSS. Waiting for good status ..
    2009-06-24 22:00:09.307: [ COMMCRS][1103116608]clsc_connect: (0x151f23b0) no listener at (ADDRESS=(PROTOCOL=ipc)(KEY=OCSSD_LL_rac1dr_crsdr))
    2009-06-24 22:00:09.307: [ CSSCLNT][3594852768]clsssInitNative: connect failed, rc 9
    2009-06-24 22:00:09.307: [  CRSRTI][3594852768]0CSS is not ready. Received status 3 from CSS. Waiting for good status ..
    2009-06-24 22:00:10.773: [ COMMCRS][1103116608]clsc_connect: (0x151f25c0) no listener at (ADDRESS=(PROTOCOL=ipc)(KEY=OCSSD_LL_rac1dr_crsdr))
    2009-06-24 22:00:10.773: [ CSSCLNT][3594852768]clsssInitNative: connect failed, rc 9
    2009-06-24 22:00:10.774: [  CRSRTI][3594852768]0CSS is not ready. Received status 3 from CSS. Waiting for good status ..
    2009-06-24 22:00:12.150: [ COMMCRS][1103116608]clsc_connect: (0x151f2880) no listener at (ADDRESS=(PROTOCOL=ipc)(KEY=OCSSD_LL_rac1dr_crsdr))
    2009-06-24 22:00:12.150: [ CSSCLNT][3594852768]clsssInitNative: connect failed, rc 9
    2009-06-24 22:00:12.150: [  CRSRTI][3594852768]0CSS is not ready. Received status 3 from CSS. Waiting for good status ..
    2009-06-24 22:00:19.093: [    CRSD][3594852768]0Daemon Version: 10.2.0.1.0 Active Version: 10.2.0.1.0
    2009-06-24 22:00:19.093: [    CRSD][3594852768]0Active Version and Software Version are same
    2009-06-24 22:00:19.093: [ CRSMAIN][3594852768]0Initializing OCR
    2009-06-24 22:00:19.098: [  OCRRAW][3594852768]proprioo: for disk 0 (/u02/oradata/orcl/OCRFile), id match (1), my id set (503252545,1028247821) total id sets (1), 1st set (503252545,1028247821), 2nd set (0,0) my votes (2), total votes (2)
    2009-06-24 22:00:19.128: [  OCRMAS][1228994880]th_master:12: I AM THE NEW OCR MASTER at incar 1. Node Number = 1
    2009-06-24 22:00:19.129: [  OCRRAW][1228994880]proprioo: for disk 0 (/u02/oradata/orcl/OCRFile), id match (1), my id set (503252545,1028247821) total id sets (1), 1st set (503252545,1028247821), 2nd set (0,0) my votes (2), total votes (2)
    2009-06-24 22:00:19.144: [    CRSD][3594852768]0ENV Logging level for Module: allcomp 0
    2009-06-24 22:00:19.144: [    CRSD][3594852768]0ENV Logging level for Module: default 0
    2009-06-24 22:00:19.145: [    CRSD][3594852768]0ENV Logging level for Module: COMMCRS 0
    2009-06-24 22:00:19.145: [    CRSD][3594852768]0ENV Logging level for Module: COMMNS 0
    2009-06-24 22:00:19.146: [    CRSD][3594852768]0ENV Logging level for Module: CRSUI 0
    2009-06-24 22:00:19.146: [    CRSD][3594852768]0ENV Logging level for Module: CRSCOMM 0
    2009-06-24 22:00:19.148: [    CRSD][3594852768]0ENV Logging level for Module: CRSRTI 0
    2009-06-24 22:00:19.148: [    CRSD][3594852768]0ENV Logging level for Module: CRSMAIN 0
    2009-06-24 22:00:19.149: [  OCRSRV][1249974592]th_select_handler: Failed to retrieve procctx from ht. constr = [363817168] retval lht [-27] Signal CV.
    2009-06-24 22:00:19.149: [    CRSD][3594852768]0ENV Logging level for Module: CRSPLACE 0
    2009-06-24 22:00:19.149: [    CRSD][3594852768]0ENV Logging level for Module: CRSAPP 0
    2009-06-24 22:00:19.150: [    CRSD][3594852768]0ENV Logging level for Module: CRSRES 0
    2009-06-24 22:00:19.150: [    CRSD][3594852768]0ENV Logging level for Module: CRSOCR 0
    2009-06-24 22:00:19.151: [    CRSD][3594852768]0ENV Logging level for Module: CRSTIMER 0
    2009-06-24 22:00:19.151: [    CRSD][3594852768]0ENV Logging level for Module: CRSEVT 0
    2009-06-24 22:00:19.152: [    CRSD][3594852768]0ENV Logging level for Module: CRSD 0
    2009-06-24 22:00:19.153: [    CRSD][3594852768]0ENV Logging level for Module: CLUCLS 0
    2009-06-24 22:00:19.154: [    CRSD][3594852768]0ENV Logging level for Module: OCRRAW 0
    2009-06-24 22:00:19.155: [    CRSD][3594852768]0ENV Logging level for Module: OCROSD 0
    2009-06-24 22:00:19.155: [    CRSD][3594852768]0ENV Logging level for Module: CSSCLNT 0
    2009-06-24 22:00:19.156: [    CRSD][3594852768]0ENV Logging level for Module: OCRAPI 0
    2009-06-24 22:00:19.157: [    CRSD][3594852768]0ENV Logging level for Module: OCRUTL 0
    2009-06-24 22:00:19.158: [    CRSD][3594852768]0ENV Logging level for Module: OCRMSG 0
    2009-06-24 22:00:19.159: [    CRSD][3594852768]0ENV Logging level for Module: OCRCLI 0
    2009-06-24 22:00:19.159: [    CRSD][3594852768]0ENV Logging level for Module: OCRCAC 0
    2009-06-24 22:00:19.160: [    CRSD][3594852768]0ENV Logging level for Module: OCRSRV 0
    2009-06-24 22:00:19.160: [    CRSD][3594852768]0ENV Logging level for Module: OCRMAS 0
    2009-06-24 22:00:19.161: [ CRSMAIN][3594852768]0Filename is /u01/app/crs/crs/init/rac1dr.pid
    [  clsdmt][1417812288]Listening to (ADDRESS=(PROTOCOL=ipc)(KEY=rac1drDBG_CRSD))
    2009-06-24 22:00:19.506: [ CRSMAIN][3594852768]0Using Authorizer location: /u01/app/crs/crs/auth/
    2009-06-24 22:00:19.760: [ CRSMAIN][3594852768]0Initializing RTI
    2009-06-24 22:00:19.761: [CRSTIMER][1438792000]0Timer Thread Starting.
    2009-06-24 22:00:19.770: [  CRSRES][3594852768]0Parameter SECURITY = 1, running in USER Mode
    2009-06-24 22:00:19.770: [ CRSMAIN][3594852768]0Initializing EVMMgr
    2009-06-24 22:00:19.996: [ COMMCRS][1449281856]clsc_connect: (0x15b1dc20) no listener at (ADDRESS=(PROTOCOL=ipc)(KEY=SYSTEM.evm.acceptor.auth))
    2009-06-24 22:00:21.860: [ CRSMAIN][3594852768]0CRSD locked during state recovery, please wait.
    2009-06-24 22:00:22.494: [ CRSMAIN][3594852768]0CRSD recovered, unlocked.
    2009-06-24 22:00:22.496: [ CRSMAIN][3594852768]0QS socket on: (ADDRESS=(PROTOCOL=ipc)(KEY=ora_crsqs))
    2009-06-24 22:00:22.604: [ CRSMAIN][3594852768]0CRSD UI socket on: (ADDRESS=(PROTOCOL=ipc)(KEY=CRSD_UI_SOCKET))
    2009-06-24 22:00:22.607: [ CRSMAIN][3594852768]0E2E socket on: (ADDRESS=(PROTOCOL=tcp)(HOST=rac1dr-priv)(PORT=49896))
    2009-06-24 22:00:22.607: [ CRSMAIN][3594852768]0Starting Threads
    2009-06-24 22:00:22.607: [ CRSMAIN][3594852768]0CRS Daemon Started.
    2009-06-24 22:00:23.732: [  CRSRES][1554180416]0startRunnable: setting CLI values
    2009-06-24 22:00:23.821: [  CRSRES][1554180416]0Attempting to start `ora.rac2dr.vip` on member `rac1dr`
    2009-06-24 22:00:23.822: [  CRSRES][1543690560]0startRunnable: setting CLI values
    2009-06-24 22:00:23.935: [  CRSRES][1543690560]0Attempting to start `ora.rac1dr.vip` on member `rac1dr`
    2009-06-24 22:00:30.657: [  CRSRES][1554180416]0Start of `ora.rac2dr.vip` on member `rac1dr` succeeded.
    2009-06-24 22:00:30.705: [  CRSRES][1543690560]0Start of `ora.rac1dr.vip` on member `rac1dr` succeeded.
    2009-06-24 22:00:31.408: [  CRSRES][1554180416]0startRunnable: setting CLI values
    2009-06-24 22:00:31.410: [  CRSRES][1543690560]0startRunnable: setting CLI values
    2009-06-24 22:00:31.647: [  CRSRES][1554180416]0Attempting to start `ora.rac1dr.gsd` on member `rac1dr`
    2009-06-24 22:00:31.708: [  CRSRES][1543690560]0Attempting to start `ora.rac1dr.ons` on member `rac1dr`
    2009-06-24 22:00:32.538: [  CRSEVT][1554180416]0CAAMonitorHandler :: 0:Action Script /u01/app/crs/bin/racgwrap(start) timed out for ora.rac1dr.gsd! (timeout=600)
    2009-06-24 22:00:32.538: [  CRSAPP][1554180416]0StartResource error for ora.rac1dr.gsd error code = -2
    2009-06-24 22:00:32.573: [  CRSEVT][1543690560]0CAAMonitorHandler :: 0:Action Script /u01/app/crs/bin/racgwrap(start) timed out for ora.rac1dr.ons! (timeout=600)
    2009-06-24 22:00:32.573: [  CRSAPP][1543690560]0StartResource error for ora.rac1dr.ons error code = -2
    2009-06-24 22:00:32.737: [  CRSEVT][1554180416]0CAAMonitorHandler :: 0:Action Script /u01/app/crs/bin/racgwrap(stop) timed out for ora.rac1dr.gsd! (timeout=600)
    2009-06-24 22:00:32.737: [  CRSAPP][1554180416]0StopResource error for ora.rac1dr.gsd error code = -2
    2009-06-24 22:00:32.837: [  CRSEVT][1543690560]0CAAMonitorHandler :: 0:Action Script /u01/app/crs/bin/racgwrap(stop) timed out for ora.rac1dr.ons! (timeout=600)
    2009-06-24 22:00:32.837: [  CRSAPP][1543690560]0StopResource error for ora.rac1dr.ons error code = -2
    2009-06-24 22:00:32.873: [  CRSRES][1554180416]0X_OP_StopResourceFailed : Stop Resource failed
    (File: rti.cpp, line: 1698
    2009-06-24 22:00:32.873: [  CRSRES][1554180416][ALERT]0`ora.rac1dr.gsd` on member `rac1dr` has experienced an unrecoverable failure.
    2009-06-24 22:00:32.873: [  CRSRES][1554180416]0Human intervention required to resume its availability.
    2009-06-24 22:00:32.921: [  CRSRES][1543690560]0X_OP_StopResourceFailed : Stop Resource failed
    (File: rti.cpp, line: 1698
    2009-06-24 22:00:32.921: [  CRSRES][1543690560][ALERT]0`ora.rac1dr.ons` on member `rac1dr` has experienced an unrecoverable failure.
    2009-06-24 22:00:32.921: [  CRSRES][1543690560]0Human intervention required to resume its availability.
    Any help is highly appreciated.
    Kamy

    CRS on RHEL 5.5 auto-start problem
    hi all
    Recently I install RAC Oracle 10gR2 on Red hat RHEL 5.5. “Two node cluster, iscsi storage, ocfs2 mounted files & ASM ”
    I did research and took all the necessary actions to install it on Red hat. Everything went well, according to the documents and at the end of the installation, all the resources were up and running. However, after the install, only the VIP was up and ONS and GSD ,ASM and the other services was in unknown state. When I stop the CRS & start it –all again, everything stars working. Please friends I need to fix this problem because the cluster services and the client workstation are stopping when the servicers is relocated to node 1 after the server reboot because the CRS did not worked still on node and manual starting is taking time.
    This is the result from crsd.log from node1 when node is online .
    Name Type Target State Host
    ora....SM1.asm      application ONLINE UNKNOWN linux1
    ora....X1.lsnr      application ONLINE UNKNOWN linux1
    ora.linux1.gsd     application ONLINE UNKNOWN linux1
    ora.linux1.ons      application ONLINE UNKNOWN linux1
    ora.linux1.vip     application ONLINE ONLINE linux1
    ora....SM2.asm     application ONLINE ONLINE linux2
    ora....X2.lsnr      application ONLINE ONLINE linux2
    ora.linux2.gsd      application ONLINE ONLINE linux2
    ora.linux2.ons     application ONLINE ONLINE linux2
    ora.linux2.vip      application ONLINE ONLINE linux2
    ora.mutdb.db      application ONLINE ONLINE linux2
    ora....b1.inst      application ONLINE OFFLINE
    ora....b2.inst      application ONLINE ONLINE linux2
    ora...._taf.cs      application ONLINE ONLINE linux2
    ora....db1.srv      application ONLINE UNKNOWN linux1
    ora....db2.srv      application ONLINE ONLINE linux2
    ############################### CRS Log ON Node 1 ##################################
    2010-05-27 11:54:57.357: [ default][3741415840][ENTER]0
    Oracle Database 10g CRS Release 10.2.0.1.0 Production Copyright 1996, 2004, Oracle. All rights reserved
    2010-05-27 11:54:57.366: [ default][3741415840]0CRS Daemon Starting
    2010-05-27 11:54:57.366: [ CRSMAIN][3741415840]0Checking the OCR device
    2010-05-27 11:54:57.379: [ CRSMAIN][3741415840]0Connecting to the CSS Daemon
    2010-05-27 11:54:57.783: [ COMMCRS][1107867968]clsc_connect: (0x8481ce0) no listener at (ADDRESS=(PROTOCOL=ipc)(KEY=OCSSD_LL_linux1_crs))
    2010-05-27 11:54:57.783: [ CSSCLNT][3741415840]clsssInitNative: connect failed, rc 9
    2010-05-27 11:54:57.783: [  CRSRTI][3741415840]0CSS is not ready. Received status 3 from CSS. Waiting for good status ..
    2010-05-27 11:54:59.182: [ COMMCRS][1107867968]clsc_connect: (0x8481f60) no listener at (ADDRESS=(PROTOCOL=ipc)(KEY=OCSSD_LL_linux1_crs))
    2010-05-27 11:54:59.182: [ CSSCLNT][3741415840]clsssInitNative: connect failed, rc 9
    2010-05-27 11:54:59.182: [  CRSRTI][3741415840]0CSS is not ready. Received status 3 from CSS. Waiting for good status ..
    2010-05-27 11:55:00.569: [ COMMCRS][1107867968]clsc_connect: (0x84821f0) no listener at (ADDRESS=(PROTOCOL=ipc)(KEY=OCSSD_LL_linux1_crs))
    2010-05-27 11:55:00.569: [ CSSCLNT][3741415840]clsssInitNative: connect failed, rc 9
    2010-05-27 11:55:00.569: [  CRSRTI][3741415840]0CSS is not ready. Received status 3 from CSS. Waiting for good status ..
    2010-05-27 11:55:01.954: [ COMMCRS][1107867968]clsc_connect: (0x84824b0) no listener at (ADDRESS=(PROTOCOL=ipc)(KEY=OCSSD_LL_linux1_crs))
    2010-05-27 11:55:01.954: [ CSSCLNT][3741415840]clsssInitNative: connect failed, rc 9
    2010-05-27 11:55:01.954: [  CRSRTI][3741415840]0CSS is not ready. Received status 3 from CSS. Waiting for good status ..
    2010-05-27 11:55:05.924: [    CRSD][3741415840]0Daemon Version: 10.2.0.1.0 Active Version: 10.2.0.1.0
    2010-05-27 11:55:05.924: [    CRSD][3741415840]0Active Version and Software Version are same
    2010-05-27 11:55:05.924: [ CRSMAIN][3741415840]0Initializing OCR
    2010-05-27 11:55:05.937: [  OCRRAW][3741415840]proprioo: for disk 0 (/u02/OCR_1.dbf), id match (1), my id set (1273042630,1936275375) total id sets (1), 1st set (1273042630,1936275375), 2nd set (0,0) my votes (1), total votes (2)
    2010-05-27 11:55:05.938: [  OCRRAW][3741415840]proprioo: for disk 1 (/u03/OCR_2.dbf), id match (1), my id set (1273042630,1936275375) total id sets (1), 1st set (1273042630,1936275375), 2nd set (0,0) my votes (1), total votes (2)
    2010-05-27 11:55:05.981: [    CRSD][3741415840]0ENV Logging level for Module: allcomp 0
    2010-05-27 11:55:05.983: [    CRSD][3741415840]0ENV Logging level for Module: default 0
    2010-05-27 11:55:05.994: [    CRSD][3741415840]0ENV Logging level for Module: COMMCRS 0
    2010-05-27 11:55:05.996: [    CRSD][3741415840]0ENV Logging level for Module: COMMNS 0
    2010-05-27 11:55:05.999: [    CRSD][3741415840]0ENV Logging level for Module: CRSUI 0
    2010-05-27 11:55:06.001: [    CRSD][3741415840]0ENV Logging level for Module: CRSCOMM 0
    2010-05-27 11:55:06.003: [    CRSD][3741415840]0ENV Logging level for Module: CRSRTI 0
    2010-05-27 11:55:06.006: [    CRSD][3741415840]0ENV Logging level for Module: CRSMAIN 0
    2010-05-27 11:55:06.008: [    CRSD][3741415840]0ENV Logging level for Module: CRSPLACE 0
    2010-05-27 11:55:06.010: [    CRSD][3741415840]0ENV Logging level for Module: CRSAPP 0
    2010-05-27 11:55:06.012: [    CRSD][3741415840]0ENV Logging level for Module: CRSRES 0
    2010-05-27 11:55:06.015: [    CRSD][3741415840]0ENV Logging level for Module: CRSOCR 0
    2010-05-27 11:55:06.017: [    CRSD][3741415840]0ENV Logging level for Module: CRSTIMER 0
    2010-05-27 11:55:06.019: [  OCRSRV][1223256384]th_select_handler: Failed to retrieve procctx from ht. constr = [148436880] retval lht [-27] Signal CV.
    2010-05-27 11:55:06.019: [    CRSD][3741415840]0ENV Logging level for Module: CRSEVT 0
    2010-05-27 11:55:06.022: [    CRSD][3741415840]0ENV Logging level for Module: CRSD 0
    2010-05-27 11:55:06.024: [    CRSD][3741415840]0ENV Logging level for Module: CLUCLS 0
    2010-05-27 11:55:06.027: [    CRSD][3741415840]0ENV Logging level for Module: OCRRAW 0
    2010-05-27 11:55:06.029: [    CRSD][3741415840]0ENV Logging level for Module: OCROSD 0
    2010-05-27 11:55:06.032: [    CRSD][3741415840]0ENV Logging level for Module: CSSCLNT 0
    2010-05-27 11:55:06.034: [    CRSD][3741415840]0ENV Logging level for Module: OCRAPI 0
    2010-05-27 11:55:06.036: [    CRSD][3741415840]0ENV Logging level for Module: OCRUTL 0
    2010-05-27 11:55:06.039: [    CRSD][3741415840]0ENV Logging level for Module: OCRMSG 0
    2010-05-27 11:55:06.041: [    CRSD][3741415840]0ENV Logging level for Module: OCRCLI 0
    2010-05-27 11:55:06.043: [    CRSD][3741415840]0ENV Logging level for Module: OCRCAC 0
    2010-05-27 11:55:06.046: [    CRSD][3741415840]0ENV Logging level for Module: OCRSRV 0
    2010-05-27 11:55:06.048: [    CRSD][3741415840]0ENV Logging level for Module: OCRMAS 0
    2010-05-27 11:55:06.048: [ CRSMAIN][3741415840]0Filename is /u01/app/crs/crs/init/linux1.pid
    [  clsdmt][1401583936]Listening to (ADDRESS=(PROTOCOL=ipc)(KEY=linux1DBG_CRSD))
    2010-05-27 11:55:06.119: [  OCRSRV][1223256384]th_select_handler: Failed to retrieve procctx from ht. constr = [149741888] retval lht [-27] Signal CV.
    2010-05-27 11:55:07.002: [ CRSMAIN][3741415840]0Using Authorizer location: /u01/app/crs/crs/auth/
    2010-05-27 11:55:07.008: [  OCRSRV][1223256384]th_select_handler: Failed to retrieve procctx from ht. constr = [149755728] retval lht [-27] Signal CV.
    2010-05-27 11:55:07.230: [  OCRSRV][1223256384]th_select_handler: Failed to retrieve procctx from ht. constr = [149740416] retval lht [-27] Signal CV.
    2010-05-27 11:55:07.380: [ CRSMAIN][3741415840]0Initializing RTI
    2010-05-27 11:55:07.380: [CRSTIMER][1422563648]0Timer Thread Starting.
    2010-05-27 11:55:07.386: [  CRSRES][3741415840]0Parameter SECURITY = 1, running in USER Mode
    2010-05-27 11:55:07.386: [ CRSMAIN][3741415840]0Initializing EVMMgr
    2010-05-27 11:55:07.453: [  OCRSRV][1223256384]th_select_handler: Failed to retrieve procctx from ht. constr = [150974816] retval lht [-27] Signal CV.
    2010-05-27 11:55:07.474: [  OCRSRV][1223256384]th_select_handler: Failed to retrieve procctx from ht. constr = [150975552] retval lht [-27] Signal CV.
    2010-05-27 11:55:07.485: [  OCRSRV][1223256384]th_select_handler: Failed to retrieve procctx from ht. constr = [150988032] retval lht [-27] Signal CV.
    2010-05-27 11:55:07.723: [  OCRSRV][1223256384]th_select_handler: Failed to retrieve procctx from ht. constr = [150998720] retval lht [-27] Signal CV.
    2010-05-27 11:55:07.734: [ CRSMAIN][3741415840]0CRSD locked during state recovery, please wait.
    2010-05-27 11:55:07.737: [  OCRSRV][1223256384]th_select_handler: Failed to retrieve procctx from ht. constr = [150997792] retval lht [-27] Signal CV.
    2010-05-27 11:55:07.923: [  OCRSRV][1223256384]th_select_handler: Failed to retrieve procctx from ht. constr = [151007072] retval lht [-27] Signal CV.
    2010-05-27 11:55:08.032: [ CRSMAIN][3741415840]0CRSD recovered, unlocked.
    2010-05-27 11:55:08.032: [ CRSMAIN][3741415840]0QS socket on: (ADDRESS=(PROTOCOL=ipc)(KEY=ora_crsqs))
    2010-05-27 11:55:08.051: [ CRSMAIN][3741415840]0CRSD UI socket on: (ADDRESS=(PROTOCOL=ipc)(KEY=CRSD_UI_SOCKET))
    2010-05-27 11:55:08.055: [ CRSMAIN][3741415840]0E2E socket on: (ADDRESS=(PROTOCOL=tcp)(HOST=linux1-priv)(PORT=49896))
    2010-05-27 11:55:08.055: [ CRSMAIN][3741415840]0Starting Threads
    2010-05-27 11:55:08.055: [ CRSMAIN][3741415840]0CRS Daemon Started.
    2010-05-27 11:55:08.204: [  CRSRES][1527462208]0StopResource: setting CLI values
    2010-05-27 11:55:08.220: [  CRSRES][1527462208]0Attempting to stop `ora.linux1.vip` on member `linux2`
    2010-05-27 11:55:08.515: [  CRSRES][1527462208]0Stop of `ora.linux1.vip` on member `linux2` succeeded.
    2010-05-27 11:55:08.529: [  CRSRES][1527462208]0startRunnable: setting CLI values
    2010-05-27 11:55:08.529: [  CRSRES][1527462208]0Attempting to start `ora.linux1.vip` on member `linux1`
    2010-05-27 11:55:08.686: [  OCRSRV][1223256384]th_select_handler: Failed to retrieve procctx from ht. constr = [154566384] retval lht [-27] Signal CV.
    2010-05-27 11:55:14.000: [  CRSRES][1527462208]0Start of `ora.linux1.vip` on member `linux1` succeeded.
    2010-05-27 11:55:14.231: [  CRSRES][1527462208]0startRunnable: setting CLI values
    2010-05-27 11:55:14.272: [  CRSRES][1527462208]0Attempting to start `ora.linux1.LISTENER_LINUX1.lsnr` on member `linux1`
    2010-05-27 11:55:14.426: [  CRSEVT][1527462208]0CAAMonitorHandler :: 0:Action Script /u01/app/oracle/product/10.2.0/db_1/bin/racgwrap(start) timed out for ora.linux1.LISTENER_LINUX1.lsnr! (timeout=600)
    2010-05-27 11:55:14.426: [  CRSAPP][1527462208]0StartResource error for ora.linux1.LISTENER_LINUX1.lsnr error code = -2
    2010-05-27 11:55:14.489: [  CRSEVT][1527462208]0CAAMonitorHandler :: 0:Action Script /u01/app/oracle/product/10.2.0/db_1/bin/racgwrap(stop) timed out for ora.linux1.LISTENER_LINUX1.lsnr! (timeout=600)
    2010-05-27 11:55:14.489: [  CRSAPP][1527462208]0StopResource error for ora.linux1.LISTENER_LINUX1.lsnr error code = -2
    2010-05-27 11:55:14.495: [  CRSRES][1527462208]0X_OP_StopResourceFailed : Stop Resource failed
    (File: rti.cpp, line: 1698
    2010-05-27 11:55:14.495: [  CRSRES][1527462208][ALERT]0`ora.linux1.LISTENER_LINUX1.lsnr` on member `linux1` has experienced an unrecoverable failure.
    2010-05-27 11:55:14.495: [  CRSRES][1527462208]0Human intervention required to resume its availability.
    2010-05-27 11:55:14.628: [  CRSRES][1527462208]0startRunnable: setting CLI values
    2010-05-27 11:55:14.698: [  CRSRES][1527462208]0Attempting to start `ora.linux1.ASM1.asm` on member `linux1`
    2010-05-27 11:55:14.836: [  CRSEVT][1527462208]0CAAMonitorHandler :: 0:Action Script /u01/app/oracle/product/10.2.0/db_1/bin/racgwrap(start) timed out for ora.linux1.ASM1.asm! (timeout=600)
    2010-05-27 11:55:14.836: [  CRSAPP][1527462208]0StartResource error for ora.linux1.ASM1.asm error code = -2
    2010-05-27 11:55:14.875: [  CRSEVT][1527462208]0CAAMonitorHandler :: 0:Action Script /u01/app/oracle/product/10.2.0/db_1/bin/racgwrap(stop) timed out for ora.linux1.ASM1.asm! (timeout=600)
    2010-05-27 11:55:14.875: [  CRSAPP][1527462208]0StopResource error for ora.linux1.ASM1.asm error code = -2
    2010-05-27 11:55:14.881: [  CRSRES][1527462208]0X_OP_StopResourceFailed : Stop Resource failed
    (File: rti.cpp, line: 1698
    2010-05-27 11:55:14.881: [  CRSRES][1527462208][ALERT]0`ora.linux1.ASM1.asm` on member `linux1` has experienced an unrecoverable failure.
    2010-05-27 11:55:14.881: [  CRSRES][1527462208]0Human intervention required to resume its availability.
    2010-05-27 11:55:15.051: [  CRSRES][1527462208]0CRS-1028: Dependency analysis failed because of:
    'Resource in UNKNOWN state: ora.linux1.ASM1.asm'
    2010-05-27 11:55:15.185: [  CRSRES][1527462208]0startRunnable: setting CLI values
    2010-05-27 11:55:15.237: [  CRSRES][1537952064]0startRunnable: setting CLI values
    2010-05-27 11:55:15.306: [  CRSRES][1558931776]0startRunnable: setting CLI values
    2010-05-27 11:55:15.339: [  CRSRES][1527462208]0Attempting to start `ora.linux1.gsd` on member `linux1`
    2010-05-27 11:55:15.397: [  CRSRES][1537952064]0Attempting to start `ora.linux1.ons` on member `linux1`
    2010-05-27 11:55:15.407: [  CRSRES][1558931776]0Attempting to start `ora.mutdb.mutdb_taf.mutdb1.srv` on member `linux1`
    2010-05-27 11:55:15.789: [  CRSEVT][1527462208]0CAAMonitorHandler :: 0:Action Script /u01/app/crs/bin/racgwrap(start) timed out for ora.linux1.gsd! (timeout=600)
    2010-05-27 11:55:15.789: [  CRSAPP][1527462208]0StartResource error for ora.linux1.gsd error code = -2
    2010-05-27 11:55:15.808: [  CRSEVT][1537952064]0CAAMonitorHandler :: 0:Action Script /u01/app/crs/bin/racgwrap(start) timed out for ora.linux1.ons! (timeout=600)
    2010-05-27 11:55:15.808: [  CRSAPP][1537952064]0StartResource error for ora.linux1.ons error code = -2
    2010-05-27 11:55:15.812: [  CRSEVT][1558931776]0CAAMonitorHandler :: 0:Action Script /u01/app/oracle/product/10.2.0/db_1/bin/racgwrap(start) timed out for ora.mutdb.mutdb_taf.mutdb1.srv! (timeout=600)
    2010-05-27 11:55:15.812: [  CRSAPP][1558931776]0StartResource error for ora.mutdb.mutdb_taf.mutdb1.srv error code = -2
    2010-05-27 11:55:15.838: [  CRSEVT][1527462208]0CAAMonitorHandler :: 0:Action Script /u01/app/crs/bin/racgwrap(stop) timed out for ora.linux1.gsd! (timeout=600)
    2010-05-27 11:55:15.838: [  CRSAPP][1527462208]0StopResource error for ora.linux1.gsd error code = -2
    2010-05-27 11:55:15.844: [  CRSEVT][1537952064]0CAAMonitorHandler :: 0:Action Script /u01/app/crs/bin/racgwrap(stop) timed out for ora.linux1.ons! (timeout=600)
    2010-05-27 11:55:15.845: [  CRSAPP][1537952064]0StopResource error for ora.linux1.ons error code = -2
    2010-05-27 11:55:15.849: [  CRSRES][1527462208]0X_OP_StopResourceFailed : Stop Resource failed
    (File: rti.cpp, line: 1698
    2010-05-27 11:55:15.849: [  CRSRES][1527462208][ALERT]0`ora.linux1.gsd` on member `linux1` has experienced an unrecoverable failure.
    2010-05-27 11:55:15.849: [  CRSRES][1527462208]0Human intervention required to resume its availability.
    2010-05-27 11:55:15.859: [  CRSEVT][1558931776]0CAAMonitorHandler :: 0:Action Script /u01/app/oracle/product/10.2.0/db_1/bin/racgwrap(stop) timed out for ora.mutdb.mutdb_taf.mutdb1.srv! (timeout=600)
    2010-05-27 11:55:15.860: [  CRSAPP][1558931776]0StopResource error for ora.mutdb.mutdb_taf.mutdb1.srv error code = -2
    2010-05-27 11:55:15.863: [  CRSRES][1537952064]0X_OP_StopResourceFailed : Stop Resource failed
    (File: rti.cpp, line: 1698
    2010-05-27 11:55:15.863: [  CRSRES][1537952064][ALERT]0`ora.linux1.ons` on member `linux1` has experienced an unrecoverable failure.
    2010-05-27 11:55:15.863: [  CRSRES][1537952064]0Human intervention required to resume its availability.
    2010-05-27 11:55:15.869: [  CRSRES][1558931776]0X_OP_StopResourceFailed : Stop Resource failed
    (File: rti.cpp, line: 1698
    2010-05-27 11:55:15.869: [  CRSRES][1558931776][ALERT]0`ora.mutdb.mutdb_taf.mutdb1.srv` on member `linux1` has experienced an unrecoverable failure.
    2010-05-27 11:55:15.869: [  CRSRES][1558931776]0Human intervention required to resume its availability.
    2010-05-27 11:55:20.450: [  OCRSRV][1223256384]th_select_handler: Failed to retrieve procctx from ht. constr = [154578560] retval lht [-27] Signal CV.
    2010-05-27 11:55:21.130: [  OCRSRV][1223256384]th_select_handler: Failed to retrieve procctx from ht. constr = [154578560] retval lht [-27] Signal CV.
    I tired this solution it was on website “but it did not work”
    下面是METALINK给出的解释:
    I have checked the information provided. crsd is reporting timeouts when running the checking actions. The racgmain process on the other hand, executed by racgwrap, remain running so the number is increasing.This issue has been reported in Bug 7009245 ""RACGMAIN CHECK" PROCESS NOT TERMINATING", and drill down and determine the root cause this require to get a stack trace from racgmain process(es) as well as you should runOSWatcher with a specific parameters, finally the issue of Bug 7009245 has been fixed by the fix of Bug 6196746 (unpublished bug -- summary is "racgwrap spawns racgmain child process. crsd timeout kills racgwrap but bot racgmain")So please perform the following action plan that intend to solve the issue.
    .ACTION PLAN
    ============
    1. Stop CRS on this node.
    2. Make a copy of racgwrap located under $ORACLE_HOME/bin and $CRS_HOME/bin
    3. Edit the file racgwrap and modify the last 3 lines from:
    .$ORACLE_HOME/bin/racgmain "$@"
    status=$?
    exit $status
    .to:
    .# Line added to test fix for Bug 6196746
    exec $ORACLE_HOME/bin/racgmain "$@"
    .4. Restart CRS and make sure that all the resources are startes
    This should solve the issue. also if you are not able to stop CRS right now, you can try the
    solution without crs stop/start.
    BUT IT DID NOT WORK
    ###################################################3

  • [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

Maybe you are looking for

  • SOA suite licensing for production use

    Hi, I have been toying around with JDeveloper 11g and Oracle SOA Suite 11g and finally I can now say I am in a position to recommend to start moving the organisation's business processes and enterprise integration gradually to this framework. However

  • Exported image size

    I shoot a canon 30D which produces RAW files about 7mb. When I export the versions as full size Jpegs, they get knocked to around 250kb! What is going on? That seems like an extreme amount of compression to me. Any ideas as to what I am doing wrong?

  • Java Development Kit (aka JDK) on Intel Mac ?

    Hello, I'm considering seriously about buying an iMac Core Duo. I found most of the information I needed. However, I didn't found anything about the JDK. I'm using Netbeans quite often, so I want to be sure I'll be able to use it. Is there a JDK deli

  • Defining variant for report for job with dynamic date Gui 6.40 patch 21

    The system does not take over my choice for the dynamic date. I choose in the variant-attirubute-screen for a certain parameter: "type selection variable": D and then in the column "name of the variable" > I choose via F4: current date +/- days. OK a

  • How to restore my data from the blackberry protect back up archive

    Hi, my phone recently crashed, so I reloaded my OS & tried restoring my data from the blackberry protect app but noticed I could only restore from my last backup. I'd like to restore from another backup point in my archive & not my last. How do I go