[SOLVED] Switch to systemd problem

Trying to switch to systemd I made a mistake.
I missed this step
3. Install systemd-sysvcompat. This conflicts with sysvinit, and will prompt you to remove it.
Now arch linux will not start. Is there anything I can do to fix this?
Thank you
Last edited by acidic (2012-10-31 23:55:21)

The package contains the following files:
pacman -Ql systemd-sysvcompat
systemd-sysvcompat /sbin/
systemd-sysvcompat /sbin/halt
systemd-sysvcompat /sbin/init
systemd-sysvcompat /sbin/poweroff
systemd-sysvcompat /sbin/reboot
systemd-sysvcompat /sbin/runlevel
systemd-sysvcompat /sbin/shutdown
systemd-sysvcompat /sbin/telinit
systemd-sysvcompat /usr/
systemd-sysvcompat /usr/share/
systemd-sysvcompat /usr/share/man/
more manpages...
What you are missing is /sbin/init .
Explanation:
The kernel executes /sbin/init by default , which has been sysvinit before you removed it. The compat package now symlinks /sbin/init to /usr/lib/systemd/systemd to make the kernel execute systemd from /sbin/init .
If you provide the init=/usr/lib/systemd/systemd string on the kernel commandline the kernel starts this process instead of /sbin/init.
Change the string by pressing 'e' when selecting arch linux in grub2.

Similar Messages

  • [SOLVED] Switch to systemd - Now system won't boot

    I saw that todays update upgrade included the installation of systemd. I looked the wiki and did the necessary changes (I already had made the /etc/hostname etc. files). So I added the
    init=/bin/systemd
    line to grub and now my system won't boot. I get an error saying something about syslog service not enabled and then a black screen. I can boot my machine fine without the "init=/bin/systemd" line but I want to run a pure systemd system since Arch is moving to it anyway. In the wiki it mentions to install systemd-sysvcompat but it conflicts with initscripts it says. What am I doing wrong or missing?
    Last edited by fettouhi (2013-12-08 14:42:04)

    fettouhi wrote:
    Thanks for the clarification about the DAEMONS list. My DAEMONS list is:
    DAEMONS=(!hwclock ntpd syslog-ng !network netfs crond @alsa dbus networkmanager ufw cupsd avahi-daemon samba)
    when I try to enable alsa and dbus I get this
    [root@andre ~]# systemctl enable alsa-store.service
    The unit files have no [Install] section. They are not meant to be enabled using systemctl.
    [root@andre ~]# systemctl enable alsa-restore.service
    The unit files have no [Install] section. They are not meant to be enabled using systemctl.
    [root@andre ~]# systemctl enable dbus.service
    The unit files have no [Install] section. They are not meant to be enabled using systemctl.
    Is LVM handled automatically by systemd? The reason I ask is because I have the USELVM= set to YES in rc.conf.
    I made the permanent transition to systemd and did not start alsa at all - sound works fine - so I never bothered with the alsa-store/alsa-restore service files at all - it just works! Also dbus gets handled by default in systemd so you don't need any starting of dbus service at all... it just works.

  • [SOLVED] [no] Problem [at all] with NTFS after switch to systemd

    Hi.
    I've recently switched to systemd (thanks for this great Wiki page!). All is right except automount of NFTS partions. In old config, I don't have any entry in fstab, but there is a rule for udev:
    KERNEL!="sd[a-z][0-9]", GOTO="media_by_label_auto_mount_end"
    # Import FS infos
    IMPORT{program}="/sbin/blkid -o udev -p %N"
    # Get a label if present, otherwise specify one
    ENV{ID_FS_LABEL}!="", ENV{dir_name}="%E{ID_FS_LABEL}"
    ENV{ID_FS_LABEL}=="", ENV{dir_name}="usbhd-%k"
    # Global mount options
    ACTION=="add", ENV{mount_options}="relatime"
    # Filesystem-specific mount options
    #ACTION=="add", ENV{ID_FS_TYPE}=="vfat|ntfs", ENV{mount_options}="$env{mount_options},utf8,gid=100,umask=002"
    ACTION=="add", ENV{ID_FS_TYPE}=="vfat|ntfs", ENV{mount_options}="$env{mount_options},utf8,gid=100,uid=fran,umask=000"
    # Mount the device
    #ACTION=="add", RUN+="/bin/mkdir -p /media/%E{dir_name}", RUN+="/bin/mount -o $env{mount_options} /dev/%k /media/%E{dir_name}"
    ACTION=="add", RUN+="/bin/mkdir -p /media/%E{dir_name}", RUN+="/bin/mount -t ntfs-3g -o $env{mount_options} /dev/%k /media/%E{dir_name}"
    # Clean up after removal
    ACTION=="remove", ENV{dir_name}!="", RUN+="/bin/umount -l /media/%E{dir_name}", RUN+="/bin/rmdir /media/%E{dir_name}"
    # Exit
    LABEL="media_by_label_auto_mount_end"
    I think this rule should work with systemd. It seems to work, because:
    [root@HermesT rules.d]# systemctl list-units | grep 'media'
    media-Almacen.mount loaded active mounted /media/Almacen
    media-COMPAQ.mount loaded active mounted /media/COMPAQ
    media-SYSTEM.mount loaded active mounted /media/SYSTEM
    But:
    [root@HermesT media]# ls
    ls: cannot access COMPAQ: Transport endpoint is not connected
    ls: cannot access Almacen: Transport endpoint is not connected
    ls: cannot access SYSTEM: Transport endpoint is not connected
    Almacen COMPAQ MIO SYSTEM almacen hdusb usbhd-sda3 usbhd-sda4 usbhd-sdb1 usbhd-sdb2 usbhd-sdb5 usbhd-sdb6 usbhd-sdc1 usbhd-sdc2 usbhd-sdc5 usbhd-sdc6
    ¿some ideas?
    Thanks.
    Last edited by HermesT (2012-10-27 20:20:41)

    Thanks aking9:
    It seems there is no difference whether  fstab entry (a very old one, comented a long time ago) is active or not. None of both below helps to solve it.
    /dev/sda5 /media/Almacen ntfs-3g defaults,users,umask=002 0 0
    #/dev/sda5 /media/Almacen ntfs-3g defaults,users,locale=es_ES.UTF-8,umask=002 0 0
    Despite of great work done by Arch team, systemd is an "esoteric" world for me.
    Where can I now configure such thing?
    Added:
    journalctl log for ntfs-3g.
    First, fstab with locale (deprecated?). Second fstab with nls. Third, no fstab entry:
    Oct 26 18:30:04 HermesT ntfs-3g[700]: Unmounting /dev/sda5 (Almacen)
    Oct 26 18:30:31 HermesT ntfs-3g[225]: Version 2012.1.15 external FUSE 29
    Oct 26 18:30:31 HermesT ntfs-3g[225]: Mounted /dev/sda5 (Read-Write, label "Almacen", NTFS 3.1)
    Oct 26 18:30:31 HermesT ntfs-3g[225]: Cmdline options: rw,noexec,nosuid,nodev,locale=es_ES.UTF-8,umask=002,users
    Oct 26 18:30:31 HermesT ntfs-3g[225]: Mount options: rw,noexec,nosuid,nodev,users,allow_other,nonempty,relatime,fsname=/dev/sda5,blkdev,blksize=4096,default_permissions
    Oct 26 18:30:31 HermesT ntfs-3g[225]: Global ownership and permissions enforced, configuration type 7
    Oct 26 19:10:41 HermesT ntfs-3g[225]: Unmounting /dev/sda5 (Almacen)
    Oct 26 19:57:45 HermesT ntfs-3g[229]: [101B blob data]
    Oct 26 20:06:53 HermesT ntfs-3g[229]: Unmounting /dev/sda5 (Almacen)
    Oct 26 20:07:15 HermesT ntfs-3g[279]: Version 2012.1.15 external FUSE 29
    Oct 26 20:07:15 HermesT ntfs-3g[279]: Mounted /dev/sda5 (Read-Write, label "Almacen", NTFS 3.1)
    Oct 26 20:07:15 HermesT ntfs-3g[279]: Cmdline options: rw,noexec,nosuid,nodev,nls=utf8,umask=002,users
    Oct 26 20:07:15 HermesT ntfs-3g[279]: Mount options: rw,noexec,nosuid,nodev,nls=utf8,users,allow_other,nonempty,relatime,fsname=/dev/sda5,blkdev,blksize=4096,default_permissions
    Oct 26 20:07:15 HermesT ntfs-3g[279]: Global ownership and permissions enforced, configuration type 7
    Oct 26 20:08:37 HermesT ntfs-3g[279]: [101B blob data]
    Oct 26 20:24:30 HermesT ntfs-3g[279]: Unmounting /dev/sda5 (Almacen)
    Oct 26 20:26:05 HermesT ntfs-3g[795]: Version 2012.1.15 external FUSE 29
    Oct 26 20:26:05 HermesT ntfs-3g[795]: Mounted /dev/sda5 (Read-Write, label "Almacen", NTFS 3.1)
    Oct 26 20:26:05 HermesT ntfs-3g[795]: Cmdline options: rw,nodev,nosuid,uid=1002,gid=100,dmask=0077,fmask=0177,uhelper=udisks
    Oct 26 20:26:05 HermesT ntfs-3g[795]: Mount options: rw,nodev,nosuid,uhelper=udisks,allow_other,nonempty,relatime,fsname=/dev/sda5,blkdev,blksize=4096,default_permissions
    Oct 26 20:26:05 HermesT ntfs-3g[795]: Global ownership and permissions enforced, configuration type 7
    None of them solved the problem.
    Last edited by HermesT (2012-10-26 18:58:02)

  • [SOLVED] (Auto)mounting in KDE not working after switch to systemd

    After I switched to systemd (everything else works fine now) I cannot mount any disk (CD/DVD/USB disk) with KDE 4.9.2.
    I only get the error message "cannot mount the following device: [...]".
    This is also the case when logged in as root, so it's probably not a problem with permissions.
    Manually mounting works fine.
    These lines show up in syslog when attaching a USB disk:
    Nov  3 12:04:49 localhost kernel: [  310.752533] sd 5:0:0:0: [sdb] Attached SCSI removable disk
    Nov  3 12:04:49 localhost udisks-daemon[752]: **** ADDING /sys/devices/pci0000:00/0000:00:1d.7/usb2/2-2/2-2:1.0/host5/target5:0:0/5:0:0:0/block/sdb
    Nov  3 12:04:49 localhost udisks-daemon[752]: **** UPDATING /sys/devices/pci0000:00/0000:00:1d.7/usb2/2-2/2-2:1.0/host5/target5:0:0/5:0:0:0/block/sdb
    Nov  3 12:04:49 localhost udisks-daemon[752]: **** ADDED /sys/devices/pci0000:00/0000:00:1d.7/usb2/2-2/2-2:1.0/host5/target5:0:0/5:0:0:0/block/sdb
    Nov  3 12:04:49 localhost udisks-daemon[752]: **** EMITTING ADDED for /sys/devices/pci0000:00/0000:00:1d.7/usb2/2-2/2-2:1.0/host5/target5:0:0/5:0:0:0/block/sdb
    Nov  3 12:04:49 localhost udisks-daemon[752]: **** ADDING /sys/devices/pci0000:00/0000:00:1d.7/usb2/2-2/2-2:1.0/host5/target5:0:0/5:0:0:0/block/sdb/sdb1
    Nov  3 12:04:49 localhost udisks-daemon[752]: **** UPDATING /sys/devices/pci0000:00/0000:00:1d.7/usb2/2-2/2-2:1.0/host5/target5:0:0/5:0:0:0/block/sdb/sdb1
    Nov  3 12:04:49 localhost udisks-daemon[752]: **** ADDED /sys/devices/pci0000:00/0000:00:1d.7/usb2/2-2/2-2:1.0/host5/target5:0:0/5:0:0:0/block/sdb/sdb1
    Nov  3 12:04:49 localhost udisks-daemon[752]: **** EMITTING ADDED for /sys/devices/pci0000:00/0000:00:1d.7/usb2/2-2/2-2:1.0/host5/target5:0:0/5:0:0:0/block/sdb/sdb1
    Nov  3 12:04:51 localhost udisks-daemon[752]: **** USING MOUNT OPTIONS 'uhelper=udisks,nodev,nosuid,uid=1000,gid=1001,shortname=mixed,dmask=0077,utf8=1,showexec,flush' FOR DEVICE /dev/sdb1
    The error is only displayed in KDE, does not appear in the log.
    I have no idea where to look for a missing or wrong setting, so I would appreciate any advice.
    If you need more information about my system, feel free to ask.
    Last edited by iromeister (2012-12-12 17:39:47)

    I'm not sure I really agree with IgnorantGuru in that I used to use a script which mounted my floppy with udisk --sorry old school--and with the systemd change, I now only had to change my script back to the KISS principle of mount and umount, without udisk, to make it work.  I don't understand all the complaints about the direction arch is going.  To me it's the same as it's always been.  Arch is for competent linux users, simple as that.  If you don't want to do the work and figure it out--as best you can--on your own, then the forum is your friend. 
    edit: @alwaysanoob:  Recently, with the change away from consolekit to logind, check to see if your polkit.service is active as many posts are showing that the polkit upgrade is not always activated due to conflicting group id's.  I myself had this problem as polkit was trying to use group id 102 which was already taken by an old install of gdm--which I had to remove--before the polkit.service could be started properly after a reinstall of polkit
    Last edited by bgc1954 (2012-11-05 05:03:48)

  • I915 power consumption issue after switch to systemd?

    After switching to systemd I noticed a massive increase of power consumption on my Thinkpad X220 (i5 Sandy Bridge).
    The strange thing is, that after some reboots it randomly seems to catch the i915 power saving mode and the consumption gets from ~24W to ~7W at idle. But only after several reboots.
    Adding the good old i915.i915_enable_rc6=1 to the boot parameters doesn't make any differences. But looking at the powertop detail outputs it seems to be a i915 issue.
    Using the latest linux kernel from core (3.6.4) and latest intel drivers (2.20.12).

    I started to get suspicious because I have only ever had the issue in my office. Last week, when I encrypted my drive, my machine wrote to disk for more than 14 hours solid. I then did all the set up and all the restoring from backup etc. with no issue whatsoever. Lenovo ran the thing for 48 hours straight with no problem. But once in my office...
    So I asked the local IT people if they could think of anything other than overheating and explained the issue. They took my laptop yesterday , booted it from a hardware testing CD and ran it for a couple of hours sitting on top of a hot computer in the server room which is definitely hot. (It has a whole bunch of computers, I guess.) No issue. They then ran stress tests for a while in the same place. No problem. Highest recorded temp: 65C.
    The head of IT then took my power adapter to a more general IT service to be tested and inspected. They looked at it, they opened the plug to check the fuse, they tested it. No problem. Of course, the guy also explained why he was asking and the other IT person said, "Oh, is that on level 1?" "Yes..." So apparently there was another machine (a Mac), I think, doing just the same thing in an office in my part of the building. Testing showed that the power spikes and when the power spikes, the laptop shut down as a safety measure. Solution: they installed a UPS for that one laptop. They didn't tell anybody else, including the local IT people.
    What the local IT people were going to do was to install equipment to monitor the power in my office and see if anything weird was causing my laptop to react. However, that was when this was an extremely-unlikely-but-we-are-getting-desperate-for-theories scenario. Clearly, that theory no longer seems wildly implausible at all. So the current hypothesis is that it is most likely that my machine is also reacting to the spikes in power by shutting itself off. (I'm not sure why it should have just started doing this but who knows what the state of the electricals is and how that might vary?)
    I have been told that a surge protector will do no good. (They've given me one anyway but apparently it will not deal with spikes in phase 3 power or something - I didn't understand this bit but the head IT person said he didn't understand it either but the electricals IT person showed him with graphs on the whiteboard. So it must be true.)
    The current plan is to try to get the UPS from central IT which was provided for the other laptop since that person's discipline has since moved to another floor of the building so the UPS probably went back to central IT. They are going to ask during a meeting tomorrow about this possibility. Otherwise, they are planning to order a UPS for me on Monday.
    I'm somewhat surprised that the abrupt shutdowns haven't screwed my data. I've lost work but not seen fs corruption. I didn't take my laptop today. I'll need it next week but I do not plan to plug it in in my office until I have a UPS.
    I'm pretty annoyed, to be honest. I've wasted hours on this and got incredibly stressed about it. The IT people have also wasted a (smaller) amount of time. I hoped to have a new draft of an article I'm working on written by the end of reading week but that didn't happen due to all of this. And they *knew*. It would be different if this was an unknown problem just discovered - of course, one could understand that. But there's a known problem which can cause this type of problem and presumably could well damage equipment without these sorts of safety shutdown features and they don't tell anybody.
    And, no, I doubt very much indeed that a damaged personal machine would be considered the institution's liability. (Maybe if it was a student's machine and the student was required to use it or something but even then...)
    I can't believe it does much good to their equipment either.
    The local IT people did know there was an issue with some burnt out devices but that was about eight years ago and only got mentioned as a outside possibility when other diagnostics turned up no result.
    What gets me is that the proposed solution will only solve the issue for me - not for anybody else in my part of the building on level 1.

  • Switching to systemd doesn't allow kexec to work

    I switched to systemd and I noticed that kexec is not working when I have added kexec to daemons array.It doens't load a kernel without going to BIOS->GRUB2. But kexec works when I am on sysVinit. i 'm ot sure what I 'm missing?
    Last edited by hadrons123 (2012-08-01 01:57:33)

    Thank for reply. I have the last upgrade installed. But the problem still exists. But it is not permanent, I would say. I don't know what does it depend on. Right now I have closed the activity wondow in Safari and then opened it again, and now it appears in the same desktop as Safari main window and switching to Safari works correctly, as it should be. So sometimes it works fine, and sometimes it works awful.

  • Any way of finding out how Apple will solve the Aperture / ACR problem?

    Has anyone out there gotten any comments from Apple support or other people "in the know" about how Apple is going to solve the Aperture / ACR problem, and any potential time frame?
    Of course, Apple is going to work on problems with its own RAW conversion; that goes without saying. But does anyone have any knowledge of whether Apple is going to open up the ability for Apple to send RAW, unconverted images to Photoshop, so that ACR can handle them?
    I think knowing this now is pretty crucial. I am willing to live with the pain Aperture is going to impose on my workflow, in exchange for the file organization benefits it provides, IF I know that I'll be able to use Aperture with ACR soon (near term). But if Apple is going to just tinker with the RAW converter, and not attempt to send RAW files to ACR, then as someone else posted in another topic, this could be a long wait, and other companies have taken years to hone their RAW converters.
    This is kind of my last-ditch effort to keep Aperture around, and build my workflow around it. If I know that within a month or two at the most, I'll be able to be using ACR directly when editing new versions, then I'll absorb the pain until then. But if I am looking at waiting six months for it (several man years), or riding out the process of Apple trying to get their own converter fixed, then as much as I don't want to, Aperture is going to get returned or hit eBay.
    Does anyone have any idea on this? I've held up my projects for the past week trying to reorganize my workflow to work with Aperture, and I've got to pound the gavel, make a decision, and pursue a direction. Knowing what direction Apple is going to take with this makes all the difference in the world in what I do.
    Thanks in advance for any info you can pass on.
    Brad
    Powerbook G4-1.33GHz-17" / Powermac G4-1.4GHz   Mac OS X (10.4.2)   PB: 1GB RAM, Radeon 9600-64MB / PM: 1.25GB RAM, Radeon 9000Pro-128MB

    This "Open External Editor from Master NEF", versus open from a dynamicaly created version is, I have decided, crucial.
    I am getting less clumsy with the interface, but I simply can not get all white balance, and noise reduction done on my best available light shots.
    ACR in CS2, and a subsequent "Neat Image" scrubbing is excellent for this.
    The automatic association within a stack, of the resulting flattened file would be a big difference. I agree a formal statement from Apple would make me more inclined to really commit to Aperture for all my work.
    Going one step further, it would be nice to keep the layers on the round-trip Master file, even if you would work with a dynamicaly created version of the returned "master" within a stack. It would occupy more disk space, but would do so only for those images where the user has made a quality decision.
    Michael
    Powermac G5 dual 2GHZ, 2.5GB - 2x20in   Mac OS X (10.3.4)  

  • HT1212 How to solve the forgotten passcode problem

    If I never connect my iPhone5 to iTunes, didnt turn on the iCloud, and did not backup my phone before, how can i solve the forgotten passcode problem without erasing the data?

    Read the article that brought you here
    http://support.apple.com/kb/ht1212 
    There is nothing you can do other than that and you will lose your data if you have never backed up

  • Solving u0091Out of Memoryu0092 problem u0096 Using JNLP

    Hi all,
    I am just following the below mentioned blog /people/keerti.nayak/blog/2007/03/05/solving-145out-of-memory146-problem-150-using-jnlp
    I got stuck @ step 2.
    can anyone tell me... whats the exact path of the launcher file.
    Regards
    Biplab

    Hi,
    If you place the Mouse on the Integration Repository,
    You will be able to see the path on the bottom left side of the screen, which is marked as Red in the Blog
    In my case the path is----http://sxddev:50000/rep/start/repository.jnlp
    Regards
    Seshagiri

  • Does upgrading from Premiere Elements 12 to 13 solve the Organizer thumbnail problem?

    Thumbnails do not show up after importing clips into Premiere Elements 12 Organizer.  I've tried right clicking on a clip and telling it to recreate the thumbnail but it doesn't work. I've tried refreshing and repairing the catalog.  I've even started a new catalog and reimported the files.  The system says it's creating thumbnails but they still do not show up.  Does upgrading from Premiere Elements 12 to 13 solve the Organizer thumbnail problem?

    listiak
    That is one of those questions best answered by evaluating Elements Organizer13 with your specific files in your specific computer environment.
    Each of the Elements Organizer versions often appears to carry along its own baggage.
    One of the things that came up about Elements Organizer 13 thumbnails recently was a problem with files with MPEG2
    video compression. The Adobe word on this was that this is only an Elements Organizer 13 tryout issue...supposed not to exist
    in the purchased version.
    ATR

  • [SOLVED] Migrating to systemd: One big doubt

    I have been looking around and did not find anything that answers this straight up... so, forgive me if I didn't dig enough.
    I have everything ready to switch to systemd but I have a couple of daemons that do not have it's equivalent in systemd.
    Should I wait until the maintainers update their packages or there is another way I'm missing here?
    The daemons are crashplan and supersonic.... If i'ts of any help.
    Thanks!
    Last edited by Xi0N (2012-10-22 07:10:27)

    Ok, this one seems to work:
    [Unit]
    Description=Supersonic Multimedia Server
    After=network.target
    [Service]
    Type=forking
    #PIDFile=/opt/crashplan/CrashPlanEngine.pid
    #EnvironmentFile=/opt/crashplan/bin/run.conf
    WorkingDirectory=/var/supersonic
    ExecStart=/var/supersonic/supersonic.sh start
    ExecStop=/var/supersonic/supersonic.sh stop
    [Install]
    WantedBy=multi-user.target
    Just in case anyone needs it or wants to improve it.... thanks guys!! Now my system is 100% working with systemd+brand new vertex4 ssd FAST AS HELL for being a 5 year old computer.....

  • [Solved] Several problems after switch to systemd

    After many issues with today's update (like broken locale, broken suspend2ram, broken shutdown/restart, broken autologin, broken CPU clocking, broken fan control and broken wicd) I'm stuck with three of them, the most important being wicd.
    Autologin is working now and after login I have to enter a password for wicd (which was not the case before the update). After entering the password I get the dbus connection error: https://wiki.archlinux.org/index.php/wi … or_message If I kill wicd (which is runnig directly after boot, but not running properly), starting and stopping and starting again with systemctl works fine. But the autostart mostly fails for some reason (in rare cases it works though). I'm quite new to systemd and don't even know hot to open the new journal in a proper editor to search for errors efficiently.
    The second thing is that the locale is being reset to C or POSIX I suppose, at least it's not German as it should be and also is set in /etc/locale.conf.
    The third thing is that the Thinkpad fan control fails to start, too. I created a .conf file to load the thinkpad_acpi module which seems to work. If I start /usr/sbin/tpfand manually, the fan control works. But here also the autostart fails.
    Sorry for the confused description containing about nothing on error or debug information, but I don't really know where to start digging and get useful information about systemd.
    Thanks for any hint,
    PhotonX
    Last edited by PhotonX (2012-09-02 10:21:10)

    Aw, I think that's something I should be able to think of.
    Here is the log, but the last piece is just trying to fix things:
    [2012-08-27 14:25] synchronizing package lists
    [2012-08-27 14:26] Running 'pacman -S core/wireless_tools core/initscripts core/hwids core/libgssglue extra/xorg-server extra/xorg-server-common extra/xf86-video-intel extra/xorg-server-devel'
    [2012-08-27 14:26] upgraded wireless_tools (29-6 -> 29-7)
    [2012-08-27 14:26] upgraded initscripts (2012.08.2-1 -> 2012.08.3-1)
    [2012-08-27 14:26] upgraded hwids (20120730-1 -> 20120815-1)
    [2012-08-27 14:26] upgraded libgssglue (0.3-1 -> 0.4-1)
    [2012-08-27 14:26] upgraded xorg-server-common (1.12.3.901-1 -> 1.12.4-1)
    [2012-08-27 14:26] upgraded xorg-server (1.12.3.901-1 -> 1.12.4-1)
    [2012-08-27 14:26] upgraded xf86-video-intel (2.20.4-1 -> 2.20.5-1)
    [2012-08-27 14:26] upgraded xorg-server-devel (1.12.3.901-1 -> 1.12.4-1)
    [2012-08-27 14:27] Running 'pacman -U /tmp/yaourt-tmp-photon/PKGDEST.SLU/orta-gtk-theme-1.4.1-8-any.pkg.tar.xz'
    [2012-08-27 14:27] ==> to install chrom(e/ium) themes, just run
    [2012-08-27 14:27] orta-install-chrome-themes
    [2012-08-27 14:27]
    [2012-08-27 14:27] or to remove
    [2012-08-27 14:27] orta-install-chrome-themes --remove
    [2012-08-27 14:27]
    [2012-08-27 14:27] upgraded orta-gtk-theme (1.4.1-7 -> 1.4.1-8)
    [2012-08-29 13:32] Running 'pacman -Syy'
    [2012-08-29 13:32] synchronizing package lists
    [2012-08-29 13:33] Running 'pacman -S -u'
    [2012-08-29 13:33] starting full system upgrade
    [2012-08-29 13:34] upgraded ethtool (1:3.4-1 -> 1:3.5-1)
    [2012-08-29 13:34] upgraded firefox (14.0.1-1 -> 15.0-1)
    [2012-08-29 13:35] upgraded firefox-i18n-de (14.0.1-1 -> 15.0-1)
    [2012-08-29 13:35] upgraded gc (7.2-1 -> 7.2.d-1)
    [2012-08-29 13:35] upgraded hspell (1.1-2 -> 1.2-1)
    [2012-08-29 13:35] upgraded libatasmart (0.18-2 -> 0.19-1)
    [2012-08-29 13:35] upgraded libwbclient (3.6.7-1 -> 3.6.7-2)
    [2012-08-29 13:35] >>> Updating module dependencies. Please wait ...
    [2012-08-29 13:35] >>> Generating initial ramdisk, using mkinitcpio. Please wait...
    [2012-08-29 13:35] ==> Building image from preset: 'default'
    [2012-08-29 13:35] -> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux.img
    [2012-08-29 13:35] ==> Starting build: 3.5.3-1-ARCH
    [2012-08-29 13:35] -> Running build hook: [base]
    [2012-08-29 13:35] -> Running build hook: [udev]
    [2012-08-29 13:35] -> Running build hook: [autodetect]
    [2012-08-29 13:35] -> Running build hook: [pata]
    [2012-08-29 13:35] -> Running build hook: [scsi]
    [2012-08-29 13:35] -> Running build hook: [sata]
    [2012-08-29 13:35] -> Running build hook: [filesystems]
    [2012-08-29 13:35] -> Running build hook: [usbinput]
    [2012-08-29 13:35] -> Running build hook: [fsck]
    [2012-08-29 13:35] ==> Generating module dependencies
    [2012-08-29 13:35] ==> Creating gzip initcpio image: /boot/initramfs-linux.img
    [2012-08-29 13:35] ==> Image generation successful
    [2012-08-29 13:35] ==> Building image from preset: 'fallback'
    [2012-08-29 13:35] -> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-fallback.img -S autodetect
    [2012-08-29 13:35] ==> Starting build: 3.5.3-1-ARCH
    [2012-08-29 13:35] -> Running build hook: [base]
    [2012-08-29 13:35] -> Running build hook: [udev]
    [2012-08-29 13:35] -> Running build hook: [pata]
    [2012-08-29 13:35] -> Running build hook: [scsi]
    [2012-08-29 13:35] -> Running build hook: [sata]
    [2012-08-29 13:35] -> Running build hook: [filesystems]
    [2012-08-29 13:35] -> Running build hook: [usbinput]
    [2012-08-29 13:35] -> Running build hook: [fsck]
    [2012-08-29 13:35] ==> Generating module dependencies
    [2012-08-29 13:35] ==> Creating gzip initcpio image: /boot/initramfs-linux-fallback.img
    [2012-08-29 13:36] ==> Image generation successful
    [2012-08-29 13:36] upgraded linux (3.4.9-1 -> 3.5.3-1)
    [2012-08-29 13:36] upgraded linux-headers (3.4.9-1 -> 3.5.3-1)
    [2012-08-29 13:36] upgraded lirc-utils (1:0.9.0-22 -> 1:0.9.0-26)
    [2012-08-29 13:36] upgraded sane (1.0.22-9 -> 1.0.23-1)
    [2012-08-29 13:36] upgraded smbclient (3.6.7-1 -> 3.6.7-2)
    [2012-08-29 13:36] upgraded syslinux (4.05-6 -> 4.05-7)
    [2012-08-29 13:37] upgraded tp_smapi (0.41-3 -> 0.41-5)
    [2012-08-29 13:37] upgraded udisks (1.0.4-4 -> 1.0.4-5)
    [2012-08-29 13:58] Running 'pacman -S --asdeps --needed extra/python-gobject'
    [2012-08-29 13:58] installed python-cairo (1.10.0-1)
    [2012-08-29 13:58] installed python-gobject (3.2.2-1)
    [2012-08-29 13:59] Running 'pacman -U /tmp/yaourt-tmp-photon/PKGDEST.WKI/orta-gtk-theme-1.4.1-9.2.1-any.pkg.tar.xz'
    [2012-08-29 13:59] ==> to install chrom(e/ium) themes, just run
    [2012-08-29 13:59] orta-install-chrome-themes
    [2012-08-29 13:59]
    [2012-08-29 13:59] or to remove
    [2012-08-29 13:59] orta-install-chrome-themes --remove
    [2012-08-29 13:59]
    [2012-08-29 13:59] upgraded orta-gtk-theme (1.4.1-8 -> 1.4.1-9.2.1)
    [2012-08-29 14:00] Running 'pacman -U /tmp/yaourt-tmp-photon/PKGDEST.u1D/xfce4-places-plugin-1.4.0-1-i686.pkg.tar.xz'
    [2012-08-29 14:00] upgraded xfce4-places-plugin (1.3.0-3 -> 1.4.0-1)
    [2012-08-29 14:20] Running 'pacman -S community/python2-configglue'
    [2012-08-29 14:20] installed python2-configglue (1.0.3-1)
    [2012-08-29 14:21] Running 'pacman -R python2-configparser'
    [2012-08-29 14:21] Running 'pacman -R python2-configglue'
    [2012-08-29 14:21] removed python2-configglue (1.0.3-1)
    [2012-08-29 16:58] Running 'pacman -S community/mupdf'
    [2012-08-29 16:59] installed jbig2dec (0.11-5)
    [2012-08-29 16:59] installed mupdf (1.1-1)
    [2012-08-31 13:11] Running 'pacman -Sy'
    [2012-08-31 13:11] synchronizing package lists
    [2012-08-31 13:12] Running 'pacman -S -u'
    [2012-08-31 13:12] starting full system upgrade
    [2012-08-31 13:15] Running 'pacman -Sy'
    [2012-08-31 13:15] synchronizing package lists
    [2012-08-31 13:15] Running 'pacman -S -u'
    [2012-08-31 13:15] starting full system upgrade
    [2012-08-31 13:17] removed libsystemd (188-2)
    [2012-08-31 13:17] removed systemd-tools (188-2)
    [2012-08-31 13:17] Generating locales...
    [2012-08-31 13:17] de_DE.UTF-8... done
    [2012-08-31 13:17] en_US.UTF-8... done
    [2012-08-31 13:17] ru_RU.UTF-8... done
    [2012-08-31 13:17] Generation complete.
    [2012-08-31 13:17] upgraded glibc (2.16.0-3 -> 2.16.0-4)
    [2012-08-31 13:17] upgraded libdrm (2.4.38-1 -> 2.4.39-1)
    [2012-08-31 13:17] upgraded libglapi (8.0.4-2 -> 8.0.4-3)
    [2012-08-31 13:18] upgraded libgl (8.0.4-2 -> 8.0.4-3)
    [2012-08-31 13:18] upgraded ati-dri (8.0.4-2 -> 8.0.4-3)
    [2012-08-31 13:18] upgraded cracklib (2.8.18-2 -> 2.8.19-1)
    [2012-08-31 13:18] error: problem occurred while upgrading filesystem
    [2012-08-31 13:18] upgraded filesystem (2012.7-1 -> 2012.8-1)
    [2012-08-31 13:19] Running 'pacman -Sy'
    [2012-08-31 13:19] synchronizing package lists
    [2012-08-31 13:19] Running 'pacman -S -u'
    [2012-08-31 13:19] starting full system upgrade
    [2012-08-31 13:20] upgraded gdk-pixbuf2 (2.26.2-1 -> 2.26.3-1)
    [2012-08-31 13:20] upgraded gnutls (3.0.22-1 -> 3.1.0-1)
    [2012-08-31 13:21] upgraded hedgewars (0.9.17-3 -> 0.9.17-4)
    [2012-08-31 13:21] upgraded imagemagick (6.7.8.9-1 -> 6.7.9.2-1)
    [2012-08-31 13:21] ln -s '/usr/lib/systemd/system/[email protected]' '/etc/systemd/system/getty.target.wants/[email protected]'
    [2012-08-31 13:21] :: Append 'init=/bin/systemd' to your kernel command line in your
    [2012-08-31 13:21] bootloader to replace sysvinit with systemd
    [2012-08-31 13:21] installed systemd (189-3)
    [2012-08-31 13:21] upgraded initscripts (2012.08.3-1 -> 2012.08.3-2)
    [2012-08-31 13:21] upgraded intel-dri (8.0.4-2 -> 8.0.4-3)
    [2012-08-31 13:21] upgraded libwebkit (1.8.2-1 -> 1.8.3-1)
    [2012-08-31 13:21] upgraded mesa (8.0.4-2 -> 8.0.4-3)
    [2012-08-31 13:21] upgraded pkg-config (0.27-1 -> 0.27.1-1)
    [2012-08-31 13:21] upgraded svga-dri (8.0.4-2 -> 8.0.4-3)
    [2012-08-31 13:21] upgraded unetbootin (578-1 -> 581-1)
    [2012-08-31 13:22] Running 'pacman -Sy'
    [2012-08-31 13:22] synchronizing package lists
    [2012-08-31 13:24] Running 'pacman -Syu'
    [2012-08-31 13:24] synchronizing package lists
    [2012-08-31 13:42] Running 'pacman -U /tmp/yaourt-tmp-photon/PKGDEST.K4x/jre-7.7-1-i686.pkg.tar.xz'
    [2012-08-31 13:44] upgraded jre (7.6-1 -> 7.7-1)
    [2012-08-31 13:44] Running 'pacman -U /tmp/yaourt-tmp-photon/PKGDEST.OwW/orta-gtk-theme-1.4.1-9.4-any.pkg.tar.xz'
    [2012-08-31 13:44] ==> to install chrom(e/ium) themes, just run
    [2012-08-31 13:44] orta-install-chrome-themes
    [2012-08-31 13:44]
    [2012-08-31 13:44] or to remove
    [2012-08-31 13:44] orta-install-chrome-themes --remove
    [2012-08-31 13:44]
    [2012-08-31 13:44] upgraded orta-gtk-theme (1.4.1-9.2.1 -> 1.4.1-9.4)
    [2012-08-31 14:08] Running 'pacman -Sy'
    [2012-08-31 14:08] synchronizing package lists
    [2012-08-31 15:29] Running 'pacman -U libsystemd-188-2-i686.pkg.tar.xz systemd-tools-188-2-i686.pkg.tar.xz'
    [2012-08-31 15:29] removed systemd (189-3)
    [2012-08-31 15:29] installed libsystemd (188-2)
    [2012-08-31 15:29] installed systemd-tools (188-2)
    [2012-08-31 15:35] Running 'pacman -U initscripts-2012.08.3-1-any.pkg.tar.xz'
    [2012-08-31 15:35] upgraded initscripts (2012.08.3-2 -> 2012.08.3-1)
    [2012-08-31 15:40] Running 'pacman -U wireless_tools-29-6-i686.pkg.tar.xz initscripts-2012.08.2-1-any.pkg.tar.xz'
    [2012-08-31 15:40] upgraded wireless_tools (29-7 -> 29-6)
    [2012-08-31 15:40] upgraded initscripts (2012.08.3-1 -> 2012.08.2-1)
    [2012-08-31 15:46] Running 'pacman -U ethtool-1:3.4-1-i686.pkg.tar.xz'
    [2012-08-31 15:46] upgraded ethtool (1:3.5-1 -> 1:3.4-1)
    [2012-08-31 15:47] Running 'pacman -U syslinux-4.05-6-i686.pkg.tar.xz linux-3.4.9-1-i686.pkg.tar.xz linux-headers-3.4.9-1-i686.pkg.tar.xz'
    [2012-08-31 15:49] Running 'pacman -U syslinux-4.05-6-i686.pkg.tar.xz'
    [2012-08-31 15:49] upgraded syslinux (4.05-7 -> 4.05-6)
    [2012-08-31 21:53] Running 'pacman -U filesystem-2012.7-1-any.pkg.tar.xz'
    [2012-08-31 21:53] error: problem occurred while upgrading filesystem
    [2012-08-31 21:53] upgraded filesystem (2012.8-1 -> 2012.7-1)
    [2012-08-31 21:53] Running 'pacman -U filesystem-2012.7-1-any.pkg.tar.xz'
    [2012-08-31 21:53] error: problem occurred while upgrading filesystem
    [2012-08-31 21:53] upgraded filesystem (2012.7-1 -> 2012.7-1)
    [2012-08-31 21:55] Running 'pacman -U filesystem-2012.7-1-any.pkg.tar.xz'
    [2012-08-31 21:55] upgraded filesystem (2012.7-1 -> 2012.7-1)
    [2012-08-31 21:57] Running 'pacman -Sy'
    [2012-08-31 21:57] synchronizing package lists
    [2012-08-31 21:59] Running 'pacman -S extra/ethtool'
    [2012-08-31 21:59] upgraded ethtool (1:3.4-1 -> 1:3.5-1)
    [2012-08-31 21:13] Running 'pacman -S core/systemd-sysvcompat'
    [2012-08-31 21:13] Running 'pacman -S core/systemd'
    [2012-08-31 21:14] removed libsystemd (188-2)
    [2012-08-31 21:14] removed systemd-tools (188-2)
    [2012-08-31 21:14] :: Append 'init=/bin/systemd' to your kernel command line in your
    [2012-08-31 21:14] bootloader to replace sysvinit with systemd
    [2012-08-31 21:14] installed systemd (189-3)
    [2012-08-31 21:15] Running 'pacman -S community/systemd-arch-units'
    [2012-08-31 21:15] installed systemd-arch-units (20120704-5)
    [2012-08-31 21:24] Running 'pacman -S core/initscripts'
    [2012-08-31 21:25] upgraded initscripts (2012.08.2-1 -> 2012.08.3-2)
    [2012-08-31 22:28] Running 'pacman -Sy'
    [2012-08-31 22:28] synchronizing package lists
    [2012-08-31 22:29] Running 'pacman -S core/syslinux'
    [2012-08-31 22:29] upgraded syslinux (4.05-6 -> 4.05-7)
    [2012-08-31 22:31] Running 'pacman -Sy'
    [2012-08-31 22:31] synchronizing package lists
    [2012-08-31 22:31] Running 'pacman -S core/wireless_tools'
    [2012-08-31 22:31] upgraded wireless_tools (29-6 -> 29-7)
    [2012-08-31 22:33] Running 'pacman -Sy'
    [2012-08-31 22:33] synchronizing package lists
    [2012-08-31 22:34] Running 'pacman -S -u'
    [2012-08-31 22:34] starting full system upgrade
    [2012-08-31 22:34] upgraded filesystem (2012.7-1 -> 2012.8-1)
    [2012-08-31 22:37] Running 'pacman -S core/systemd-sysvcompat'
    [2012-08-31 22:37] Running 'pacman -R initscripts sysvinit'
    [2012-08-31 22:37] warning: /etc/rc.conf saved as /etc/rc.conf.pacsave
    [2012-08-31 22:37] warning: /etc/inittab saved as /etc/inittab.pacsave
    [2012-08-31 22:37] removed initscripts (2012.08.3-2)
    [2012-08-31 22:37] removed sysvinit (2.88-6)
    [2012-08-31 22:37] Running 'pacman -S core/systemd-sysvcompat'
    [2012-08-31 22:37] installed systemd-sysvcompat (189-3)
    [2012-08-31 23:09] Running 'pacman -R wicd'
    [2012-08-31 23:09] Running 'pacman -R wicd wicd-gtk'
    [2012-08-31 23:09] removed wicd-gtk (1.7.2.4-3)
    [2012-08-31 23:09] removed wicd (1.7.2.4-3)
    [2012-08-31 23:10] Running 'pacman -S extra/wicd-gtk'
    [2012-08-31 23:10]
    [2012-08-31 23:10] ==> You need to restart the dbus service after
    [2012-08-31 23:10] ==> upgrading wicd.
    [2012-08-31 23:10] ==> Disable networkmanager,dhcdbd or other networking
    [2012-08-31 23:10] ==> utility and add 'wicd' to DAEMONS
    [2012-08-31 23:10] ==> in /etc/rc.conf
    [2012-08-31 23:10] ==> 'dbus' HAS to be before 'wicd' in rc.conf in the
    [2012-08-31 23:10] ==> DAEMONS array.
    [2012-08-31 23:10] ==> Wireless Interface Connection Daemon
    [2012-08-31 23:10]
    [2012-08-31 23:10] ==> To run: wicd-cli or wicd-curses
    [2012-08-31 23:10] installed wicd (1.7.2.4-3)
    [2012-08-31 23:10]
    [2012-08-31 23:10] ==> You need to restart the dbus service after
    [2012-08-31 23:10] ==> upgrading wicd.
    [2012-08-31 23:10] ==> Disable networkmanager,dhcdbd or other networking
    [2012-08-31 23:10] ==> utility and add 'wicd' to DAEMONS
    [2012-08-31 23:10] ==> in /etc/rc.conf
    [2012-08-31 23:10] ==> 'dbus' HAS to be before 'wicd' in rc.conf in the
    [2012-08-31 23:10] ==> DAEMONS array.
    [2012-08-31 23:10] ==> Wireless Interface Connection Daemon
    [2012-08-31 23:10]
    [2012-08-31 23:10] ==> To run: wicd-cli or wicd-curses
    [2012-08-31 23:10] installed wicd-gtk (1.7.2.4-3)

  • [Solved] Moving to systemd. Locale problems.

    After unsnstallation of initscripts and installation and configuring systemd, cyrillic support for filenames is gone.
    Now I get gibberish symbols for cyrillic filenames and I can write in cyrillic ony in X applications except terminal and wine.
    After I switch language in KDE and try to write something in urxvt - I get nothing.
    In konsole - "?" instead of every symbol.
    Note: I used the same parameters for locale.gen and locale.conf with initscripts, so nothing changed.
    #/etc/locale.conf
    LANG=en_US.UTF-8
    LC_MESSAGES=C
    LC_COLLATE=C
    #/etc/locale.gen
    en_US.UTF-8 UTF-8
    ru_RU.UTF-8 UTF-8
    uk_UA.UTF-8 UTF-8
    $ locale -a
    C
    POSIX
    en_US.utf8
    ru_RU.utf8
    uk_UA.utf8
    $ locale
    LANG=
    LC_CTYPE="POSIX"
    LC_NUMERIC="POSIX"
    LC_TIME="POSIX"
    LC_COLLATE="POSIX"
    LC_MONETARY="POSIX"
    LC_MESSAGES="POSIX"
    LC_PAPER="POSIX"
    LC_NAME="POSIX"
    LC_ADDRESS="POSIX"
    LC_TELEPHONE="POSIX"
    LC_MEASUREMENT="POSIX"
    LC_IDENTIFICATION="POSIX"
    LC_ALL=
    $ cat /etc/vconsole.conf
    KEYMAP="en,ru,uk"
    FONT=cyr-sun16
    FONT_MAP=
    Last edited by Doctor Drive (2012-08-12 17:50:04)

    schalox wrote:Could this be the solution?
    Thanks! Read that article several times, but didn't notice that NOTE.
    Note: /etc/profile.d/locale.sh from systemd-sysvcompat or initscripts is necessary to be able to set users' locale correctly
    But why doesn't it have it's own locale.sh file?
    Why should one need to pull it from other package?
    Last edited by Doctor Drive (2012-08-12 17:49:52)

  • [SOLVED] systemd problem: scanimage works only as root

    Hello,
    I can list the scanner with lsusb, and it works with no error messages when I run scanimage. But the image file I get is corrupted. However if I do it as root, then the file is OK.
    I've just changed to systemd and I wonder if that might have something to do with it.
    Any help with this problem would be greatly appreciated. Thank you.
    Last edited by troncoso (2012-09-05 20:05:03)

    troncoso wrote: I added my private group to those listed in the 'SystemGroup' directive in cupsd.conf, and that fixed it.
    Thank you for your comment.  My line nuber 13 of cupsd.conf looks now like this and sort of fixed the issue.
    SystemGroup sys root users
    Scanimage -L works without complain, but it takes much longer time then before. There is huge delay fore the scanning starts.
    If I stop cups by issuing /etc/rc.d/cupsd stop  The problem starts again, however there is no delay.
    The corrupted scan image file has got the "Failed cupsGetDevices" at the very beginning of it added.  That is why it is corrupted.
    If I do scanning using xsane, there is no delay nor corrupted file. It just works fine without cupsd running.
    Is there any way I can fix this issue and don't let cups to delay the scanning nor add the "Failed cupsGetDevices" at the beginning of the file ?
    Is there a way to say scanimage not to use cups  at all?
    Last edited by xsouku04 (2012-09-30 21:40:37)

  • Mythtv with systemd problems [SOLVED]

    Anyone using mythtv with systemd?  I am using the following to get systemd to start mythbackend but it attempts to start before mysqld is fully ready and thus fails:
    $ cat /etc/systemd/system/mythbackend.service
    [Unit]
    Description=MythTV backend service
    After=network.target mysqld.service
    [Service]
    Type=simple
    Environment=MYTHCONFDIR=/etc/conf.d/mythbackend
    Environment=HOME=/usr/share/mythtv
    User=mythtv
    ExecStart=/usr/bin/mythbackend --logpath /var/log/mythtv
    [Install]
    WantedBy=multi-user.target
    Here is the status output... any advice?
    # systemctl status mythbackend.service
    mythbackend.service - MythTV backend service
    Loaded: loaded (/etc/systemd/system/mythbackend.service; enabled)
    Active: failed (Result: exit-code) since Thu, 10 May 2012 11:59:57 -0400; 2min 40s ago
    Process: 415 ExecStart=/usr/bin/mythbackend --logpath /var/log/mythtv/mythbackend.log (code=exited, status=130)
    CGroup: name=systemd:/system/mythbackend.service
    May 10 11:59:54 mars mythbackend[415]: 2012-05-10 11:59:54.273466 E Driver error was [1/2002]:
    May 10 11:59:54 mars mythbackend[415]: QMYSQL: Unable to connect
    May 10 11:59:54 mars mythbackend[415]: Database error was:
    May 10 11:59:54 mars mythbackend[415]: Can't connect to local MySQL server through socket '/var/ru... (2)
    May 10 11:59:56 mars mythbackend[415]: No UPnP backends found
    May 10 11:59:56 mars mythbackend[415]: Would you like to configure the database connection now? [no]
    May 10 11:59:56 mars mythbackend[415]: [console is not interactive, using default 'no']
    May 10 11:59:56 mars mythbackend[415]: 2012-05-10 11:59:56.526065 I UPnPautoconf() - No UPnP back...ound
    May 10 11:59:56 mars mythbackend[415]: 2012-05-10 11:59:56.526080 A No UPnP backends found
    May 10 11:59:56 mars mythbackend[415]: 2012-05-10 11:59:56.526190 C Failed to init MythContext.
    Last edited by graysky (2012-05-11 20:17:34)

    Cool, 65kid.  Back on topic: http://rpm.pbone.net/index.php3/stat/4/ … 4.rpm.html
    $ cat ./usr/libexec/mysqld-wait-ready
    #!/bin/sh
    # This script waits for mysqld to be ready to accept connections
    # (which can be many seconds or even minutes after launch, if there's
    # a lot of crash-recovery work to do).
    # Running this as ExecStartPost is useful so that services declared as
    # "After mysqld" won't be started until the database is really ready.
    # Service file passes us the daemon's PID
    daemon_pid="$1"
    # extract value of a MySQL option from config files
    # Usage: get_mysql_option SECTION VARNAME DEFAULT
    # result is returned in $result
    # We use my_print_defaults which prints all options from multiple files,
    # with the more specific ones later; hence take the last match.
    get_mysql_option(){
    result=`/usr/bin/my_print_defaults "$1" | sed -n "s/^--$2=//p" | tail -n 1`
    if [ -z "$result" ]; then
    # not found, use default
    result="$3"
    fi
    # Defaults here had better match what mysqld_safe will default to
    get_mysql_option mysqld datadir "/var/lib/mysql"
    datadir="$result"
    get_mysql_option mysqld socket "$datadir/mysql.sock"
    socketfile="$result"
    # Wait for the server to come up or for the mysqld process to disappear
    ret=0
    while /bin/true; do
    RESPONSE=`/usr/bin/mysqladmin --socket="$socketfile" --user=UNKNOWN_MYSQL_USER ping 2>&1`
    mret=$?
    if [ $mret -eq 0 ]; then
    break
    fi
    # exit codes 1, 11 (EXIT_CANNOT_CONNECT_TO_SERVICE) are expected,
    # anything else suggests a configuration error
    if [ $mret -ne 1 -a $mret -ne 11 ]; then
    ret=1
    break
    fi
    # "Access denied" also means the server is alive
    echo "$RESPONSE" | grep -q "Access denied for user" && break
    # Check process still exists
    if ! /bin/kill -0 $daemon_pid 2>/dev/null; then
    ret=1
    break
    fi
    sleep 1
    done
    WTF: /usr/bin/my_print_defaults
    Here is the Arch rc.d script... how to adapt this for systemd?
    stat_busy "Starting MySQL Server"
    [ ! -d /var/run/mysqld ] && install -d -g mysql -o mysql /var/run/mysqld &>/dev/null
    if [ -z "$(getPID)" ]; then
    /usr/bin/mysqld_safe --user=mysql &>/dev/null &
    if [ $? -gt 0 ]; then
    stat_fail
    exit 1
    else
    timeo=30
    while [ $timeo -gt 0 ]; do
    response=`/usr/bin/mysqladmin -uUNKNOWN_USER ping 2>&1` && break
    echo "$response" | grep -q "mysqld is alive" && break
    sleep 1
    let timeo=${timeo}-1
    done
    if [ $timeo -eq 0 ]; then
    stat_fail
    exit 1
    else
    echo $(getPID) > /var/run/mysqld/mysqld.pid
    add_daemon mysqld
    stat_done
    fi
    fi
    else
    stat_fail
    exit 1
    fi
    Last edited by graysky (2012-05-10 19:06:04)

Maybe you are looking for

  • Oracle query help

    Oracle9i Enterprise Edition Release 9.2.0.8.0 - 64bit Production With the Partitioning, OLAP and Oracle Data Mining options JServer Release 9.2.0.8.0 - Production Report Builder 10.1.2.0.2 ORACLE Server Release 10.1.0.4.2 Oracle Procedure Builder 10.

  • Business Components and oracle.jbo.domain.Date

    Hello I have the next problem I have a Busines Component and I have to acess to rows who have Dates and with oracle.jbo.domain.Date I can4t acess to the day, month, year . Can anyone Help me how can I do to access this dates? Thanks a lot your your h

  • Export to CSV download link doesn't work

    hi, I have done the following: If you click on the report link in your Region group for the page concerned, then select the Report Attributes tab and scroll down to Report Export you can change the Enable CSV Output to YES and update filename, separa

  • How to outer join within a view link from (VO-VL-VO)

    I've got a table that stores the values of pre-defined attributes. I'd like to create an advancedTable region that shows all of the attributes with or without values, in my view object i have.... select attribute, value from attributes, values where

  • Lost pdf-Emails

    How can I  find  and  open/print  encoded pdf-E-mails which  somehow  have  been lost