[SOLVED] Run script on systemd shutdown and reboot

Hello!
I am trying to log uptime on shutdown and reboot with no success.
I create the file /usr/lib/systemd/system/uptime.service:
[Unit]
Description=/etc/rc.local.shutdown Compatibility
ConditionFileIsExecutable=/etc/rc.local.shutdown
DefaultDependencies=no
After=rc-local.service basic.target
Before=shutdown.target
[Service]
Type=oneshot
ExecStart=/etc/rc.local.shutdown
StandardInput=tty
RemainAfterExit=yes
[Install]
WantedBy=shutdown.target
/etc/rc.local.shutdown:
[jribeiro@arkosta ~]$ ls -l /etc/rc.local.shutdown
-rwxr-xr-x 1 root root 107 Out 24 12:42 /etc/rc.local.shutdown
[jribeiro@arkosta ~]$ cat /etc/rc.local.shutdown
echo "$(date) - $(/usr/bin/uptime | sed 's/.*up \([^,]*\), .*/\1/')" >> /home/jribeiro/registo_de_uptime
Any ideas?
Last edited by joseribeiro (2014-10-25 19:57:59)

I altered the uptime unit file:
[jribeiro@arkosta ~]$ cat /usr/lib/systemd/system/uptime.service
[Unit]
Description=/etc/rc.local.shutdown Compatibility
Before=shutdown.target
[Service]
ExecStart=/bin/true
ExecStop=/etc/rc.local.shutdown
RemainAfterExit=yes
[Install]
WantedBy=shutdown.target
Then I started the uptime service manually:
[jribeiro@arkosta ~]$ sudo systemctl start uptime
I checked the 'registo_de_uptime' file:
[jribeiro@arkosta ~]$ cat /home/jribeiro/registo_de_uptime
Sáb Out 25 19:43:31 WEST 2014 - 2 min
After that I rebooted my system.
I checked the 'registo_de_uptime' file, again:
[jribeiro@arkosta ~]$ cat /home/jribeiro/registo_de_uptime
Sáb Out 25 19:43:31 WEST 2014 - 2 min
Sáb Out 25 19:44:27 WEST 2014 - 3 min
Everything seems to be alright. I wanted to make the ultimate test.
With that in mind I rebooted the system.
I checked the 'registo_de_uptime' file, once more:
[jribeiro@arkosta ~]$ cat /home/jribeiro/registo_de_uptime
Sáb Out 25 19:43:31 WEST 2014 - 2 min
Sáb Out 25 19:44:27 WEST 2014 - 3 min
No success...
It works when I start the service manually and in the right next reboot, after that it won't work.
Here is the journal's ouput:
[jribeiro@arkosta ~]$ sudo journalctl -b -0 -u uptime
-- Logs begin at Sex 2014-10-24 22:02:03 WEST, end at Sáb 2014-10-25 20:05:29 WEST. --
By the way:
[jribeiro@arkosta ~]$ sudo systemctl status uptime
● uptime.service - /etc/rc.local.shutdown Compatibility
Loaded: loaded (/usr/lib/systemd/system/uptime.service; enabled)
Active: inactive (dead)
Last edited by joseribeiro (2014-10-25 19:07:32)

Similar Messages

  • Systemd - kdm - xfce session: shutdown and reboot disappears randomly

    I use systemd and kdm as login manager; my desktop is XFCE.
    Immediately after login, if I click the logout button applet in the xfce panel, I can access all the options (shutdown, reboot, etc).
    But sometimes, after a while during the session, the shutdown and reboot option simply disappear - only logout works. If I log out to KDM and then again log in, they reappear.
    Does anyone have a clue about this?

    Just FYI the wikis were updated:
    Note: slim is ConsoleKit capable since version 1.3.3. Unless you happen to run an old version, you must no longer include ck-launch-session in your .xinitrc or slim.conf login_cmd.
    https://wiki.archlinux.org/index.php/Sl … vironments
    SLiM is also ConsoleKit capable since version 1.3.3. Unless you happen to run an old version, you must not use --with-ck-launch from your .xinitrc or slim.conf login_cmd.
    https://wiki.archlinux.org/index.php/Xfce#Manually

  • [SOLVED] XFCE shutdown and reboot buttons only dump out to prompt

    Recently, after an update, the XFCE shutdown and reboot buttons began not working as expected.  Both are present, and I can click them.   They seem to try to do what they should, XFCE does terminate, but I am dumped out to a shell prompt rather than the shutdown or reboot happening.   What might be a possible cause of this behaviour that I can check and correct?
    Thanks,
    Bill
    Last edited by wallenpb (2012-11-20 21:00:19)

    Are you running systemd or still a sysv/initscript setup?
    If it is the latter take into account that consolekit has been dropped. Therefore, as far as I understand it, you are not 'authenticated' and thus not allowed to either shutdown or reboot.
    Consider switching to systemd and a good start would be to comply with the 1st step of the systemd installation featured in the wiki to regain control of shutdown/reboot. Afterwards start investigating for the rest as initscripts support has ended.

  • XFCE - Shutdown and Reboot buttons greyed-out (SOLVED)

    This issue cropped up for me a couple of weeks ago.  Just sat down to try and find a solution.  Followed several suggestions from several posts to no avail.
    Finally discovered that the syntax for achieving this in "/etc/sudoers" has evidently changed.
    This is what I got from the XFCE site: http://forum.xfce.org/viewtopic.php?pid=21331 and is very similar to what's in the Arch Wiki, https://wiki.archlinux.org/index.php/Al … o_Shutdown. So I had been using the following line in /etc/sudoers and it had been working:
    %users mylaptopname=NOPASSWD: /usr/lib/xfce4/xfsm-shutdown-helper
    At some point in an XFCE upgrade the path to "xfsm-shutdown-helper" changed to "/usr/lib/xfce4/session/xfsm-shutdown-helper"
    I changed the path to "xfsm-shutdown-helper" but that didn't solve the problem.
    Finally I tried this in /etc/sudoers:
    %users  ALL=(ALL)       NOPASSWD: /sbin/shutdown -h now,/sbin/reboot
    And all the usual options in the shutdown menu re-appeared.
    Hope this helps someone.
    (Edited to show the link to the the XFCE forums and the Wiki.)
    Last edited by whatshisname (2011-11-25 16:09:31)

    Replying to my own post because of what I've discovered since I first posted this.
    Most importantly, the fix which I thought had fixed this problem didn't really work.  I was snookered into thinking it had.  But I've found another solution which appears to be working now, thus this post.
    Here's what I've found.
    I had no login/display manager on my laptop.  I was auto-logging into my desktop with this setting in /etc/inittab:
    x:5:once:/bin/su myusername -l -c '/usr/bin/startx >/dev/null 2>&1'
    The snooker alluded to above was this:  If I booted to a command line and issued "startx" to start XFCE, I would have the shutdown and reboot buttons available on the logout dialog.
    But if I booted directly into the desktop, I didn't.  It's taken me a while to figure out that this is what was going on.
    Even though my old setup had worked for the almost 2 years I've been using Arch and XFCE, some upgrade somewhere in  recent months prevented it from working any longer.
    My final fix was to install a login manager, in my case, lxdm.  And set it to auto log me into my desktop.
    I now have the expected reboot and logout menus.
    Hope this helps someone.  This has been a bear to figure out.

  • [SOLVED]Disable Shutdown and Reboot from XFCE

    Hi all
    I would like to disable the shutdown and reboot buttons from XFCE (4.10) or to do disable shutdown/reboot systemwide.
    I searched for specific xfce instructions and all i could find was using xfconf-query[1] and afaik it can only disable hibernate and suspend buttons
    [1]http://forum.xfce.org/viewtopic.php?id=4781
    Last edited by boriscougar (2012-09-11 21:51:22)

    @nadman10
    it had no change to remove my users from the power group
    @2ManyDogs
    Creating that file (/etc/xdg/xfce4/kiosk/kioskrc) and setting which users could shutdown solved the problem
    Thanks for your time

  • Shutdown and reboot logging

    Is there any file that keeps shutdowns and reboots track? or
    i should use wtmpx?

    Unia wrote:
    Which one did you install? You have to run it before you can see the icon:
    $ gnome-power-manager
    or
    $ xfce4-power-manager
    Add it to whatever startup script you use to have it launch at boot.
    Note: a power manager won't give you a shutdown dialog AFAIK. At least gnome-power-manager doesn't.
    ...Y'know, I really should've actually tried adding it to my xinitrc! I stupidly assumed that because running it via gmrun or a shell didn't bring up an icon, that adding it to my xinitrc wouldn't make any difference! Thanks a lot Unia
    EDIT: Okay... so I jumped the gun a bit, I tried adding gnome-power-manager and xfce4-power-manager to my xinitrc and both did nothing
    Last edited by Starfall (2011-05-26 18:18:04)

  • HP pavilion DV6 1030us shutdown and reboot spontaneously

    I bought a HP pavilion DV6 1030us in June 2009, and the Bios was updated to the latest version F24A.
    However, during the notebook running, it will sunddenly shutdown and restart again.
    Such unexpected shutdown just looks like loss of power suddenly, and happens randomly, at least I can not find a rule.
    For most cases, such shutdown comes  without blue screen, and it is operating system- independant.  I tried to install windows 7 64bit, windows 7 32bit, vista 64 bit, xp 32bit, all OS has such problem.
    I dont know whether other users with this model has such problem. I tired everything I can do, still can not solve the problem.
    I suspect the Bios has some problem. I hope HP will release a new one quite soon.
    btw, if I update the BIOS, will it erase the old BIOS completely first, then write into the new one?
    Thanks for all your attention!
    This question was solved.
    View Solution.

    Same issue here

  • HT5390 have a Mac mini server in the data center no physical access. Is it possible to configure a remote "console" that allows shutdown  and reboot remotely ?

    A mini mac used for building sits in the data center normally we access via VNC network connection.
    I want to have "console" access to shutdown and reboot system.
    Reason. Updated to Mountain Lion OS X from 10.7.x and lost VNC connections, now host is down with no physical access.
    Alternate is to call data center and see if someone can cycls the power ?

    As mentioned by Linc there is no 'lights out' management for the Mac mini (or any current Mac). If the Mac is still running you can initiate a reboot via the GUI or commandline. If however it is completely crashed then there is a solution you could consider which is to get a managed power distribution strip. With this the power strip has its own network connection and lets you remotely turn off (and on) individual power sockets. This would then let you 'hard reboot' the Mac mini even if crashed.
    See http://www.apc.com/products/resource/include/techspec_index.cfm?base_sku=ap7921& tab=features

  • Nano 7 auto shutdown and reboots after playing videos?

    Hello,my nano 7 is very new, and i just tried to sync videos into it today. when i tried to play them, it would automatically shutdown and reboot.Anyone know how to solve this or have similar problems?

    Okydoky a new fascinating bug has been found!
    I now relabeld all songs with no album with a "no album" tag. I thought I could handle that way the problem with the "no album bug", well I thought. Now all the songs are shown in the display but I can't play all songs through because the player hangs up. When I select just one album to play through it works fine.
    *thumbs up* great mp3 player Apple! *thumbs up*
    Windows XP Pro

  • Xfce shutdown and reboot disabled with startxfce4

    Hello.
    I try to fix twinview with my nvidia xorg.conf .And run over this kind of issue.
    From the beginning with xfce i only have a logout button no shutdown and reboot.(i can live with that)
    I start with startxfce4.
    In my xinitrc from wiki    exec ck-launch-session startxfce4  and i have dbus in /etc/rc.conf
    But when i start with startx instead all the buttons are there. I can live with that to .
    An explaination why startx working and startxfce4 not ?? Can it be a bug somewhere?
    Last edited by freddie (2011-02-20 10:01:23)

    lockheed  you could always shutdown like this from wiki, thats what i do.
    https://wiki.archlinux.org/index.php/Al … o_Shutdown
    I have all suggestions from from this thread. And i not use any display manager.
    That was more of a surprice that i got shutdown, restart, hibernate, sleep with startx instead of startxfce4. I dont know if more xfce users can do this.
    And for me i dont need to have shutdown, restart, hibernate, sleep in the panel.More curious why startx works and startxfce4 not like i say in my first post.
    Last edited by freddie (2011-02-20 12:36:17)

  • [SOLVED] How to cancel systemd-fsck during reboot after power failure.

    Hello
    If power fails (or if I, for any reason, force a physical shutdown ) on my computer, it will display during boot :
    systemd-fsck[171] : arch_data was not cleanly unmounted, check forced
    And then hangs for a long time (10 minutes ) while checking arch_home partition, wich is a 1T ext4 partition.
    then finish the boot.
    Sometimes i want this behavior, but i may need to have my computer up and running as fast as possible, and i don't seem to be able to cancel this fsck.
    Ctrl+C, or escape have no effect.
    How to allow cancelation of system-fsck for this boot, postponing it for the next boot ?
    my fstab :
    # /etc/fstab: static file system information
    # <file system> <dir> <type> <options> <dump> <pass>
    # UUID=cfdf8739-d512-4d99-9893-437a6a3c9bf4 LABEL=Arch root
    /dev/sda12 / ext4 rw,relatime,data=ordered 0 2
    # UUID=98b01aa3-0f7f-4777-a941-8e676a68adce LABEL=Arch boot
    /dev/sda11 /boot ext2 rw,relatime 0 2
    # UUID=8909c168-5f1e-4ae7-974c-3c681237af7a LABEL=Arch var
    /dev/sda13 /var ext4 rw,relatime,data=ordered 0 2
    # UUID=a13efc24-cf66-44d0-b26c-5bb5260627a0 LABEL=Arch tmp
    /dev/sda14 /tmp ext4 rw,relatime,data=ordered 0 2
    # UUID=779aeb69-9360-4df0-af84-da385b7117d1 LABEL=Arch home
    /dev/sdb4 /home ext4 rw,relatime,data=ordered 0 2
    /dev/sdb5 /home/glow/data ext4 rw,relatime,data=ordered 0 2
    Last edited by GloW_on_dub (2013-12-07 16:00:06)

    Maybe you can add a menu item to the grub boot menu so you can pick it from the menu instead of editing the grub line by hand?
    I'm using syslinux, but I can have menu items that only differ in e.g. 'quiet' parameter:
    APPEND root=/dev/sda3 rw init=/usr/lib/systemd/systemd quiet
    APPEND root=/dev/sda3 rw init=/usr/lib/systemd/systemd
    Everything else is the same.

  • Shutdown and Reboot without going root

    Is there a way I can use the reboot or poweroff commands without using sudo or root?  Or is this a bad idea?
    Last edited by Falcata (2008-09-04 00:19:30)

    mcmillan wrote:
    My question:  What is the difference between 'chmod +s halt' and NOPASSWD for shutdown as you suggested?  I am not familiar with NOPASSWD.
    NOPASSWD is specified when you configure sudo, so some commands will be executed without asking for your users password. This is probably why it wasn't working for your menu, the computer was waiting for a password but there wasn't a way to display that request or enter it in.
    That makes sense, and is in line with what I figured was going on.  With NOPASSWD which commands would be executed w/out asking for a password?  How would this be more "secure" than using chmod +s on halt and reboot?  It seems that both ways accomplish the same thing in the end, I am just trying to understand why one is better than the other.
    moljac024 wrote:
    mcmillan wrote:
    My question:  What is the difference between 'chmod +s halt' and NOPASSWD for shutdown as you suggested?  I am not familiar with NOPASSWD.
    NOPASSWD is specified when you configure sudo, so some commands will be executed without asking for your users password. This is probably why it wasn't working for your menu, the computer was waiting for a password but there wasn't a way to display that request or enter it in.
    Exaclty. So you could specify the NOPASSWD parameter for the shutdown command and sudo will just do it without asking for the password. You should have an example of how to use that in your sudoers file. If not, then
    man sudo
    Please excuse my ignorance, but how is this better than chmod +s, which allows my user to use it w/out sudo?  It seems as though one lets ME use sudo w/out a password, the other lets ME use the command w/out sudo.  What is the benefit to using sudo without a password, other than not having to physically type the password?
    Last edited by monstermudder78 (2008-09-04 23:13:40)

  • I am using Mountain Lion on a Macbook Pro and for some stupid reason it decides to shutdown and reboot randomly. I have tried reinstalling it, thought it might be some software, so I uninstalled the software. There is no application or particulaerr task c

    Hi All.
    Mountain Lion for some stupid reason keeps shutting down and rebooting on me. It is random and not associated with any particular task or program/software. I tried reinstalling Mountain Lion but the f'n thing still keeps doing it. I am trying to write a thesis and I have lost work because of this. If I can't get this sorted I am going to go back to using Lion.
    Thanks for any help you can provide.
    Brett

    I'm having the same problem at least once a day! This is the latest panic log,  any help is appreciated, thanks!
    Wed Sep 12 08:59:28 2012
    panic(cpu 0 caller 0xffffff7f8fb9ec85): NVRM[0/1:0:0]: Read Error 0x00000100: CFG 0xffffffff 0xffffffff 0xffffffff, BAR0 0xc0000000 0xffffff80aeb35000 0x0a5480a2, D0, P2/4
    Backtrace (CPU 0), Frame : Return Address
    0xffffff808afa32d0 : 0xffffff800f41d5f6
    0xffffff808afa3340 : 0xffffff7f8fb9ec85
    0xffffff808afa33d0 : 0xffffff7f8fc985b7
    0xffffff808afa3430 : 0xffffff7f8fc9862b
    0xffffff808afa34a0 : 0xffffff7f8ffad883
    0xffffff808afa35e0 : 0xffffff7f8fcbe75d
    0xffffff808afa3610 : 0xffffff7f8fba89e6
    0xffffff808afa36c0 : 0xffffff7f8fba40b8
    0xffffff808afa38b0 : 0xffffff7f8fba5b4d
    0xffffff808afa3980 : 0xffffff7f90c2043c
    0xffffff808afa39b0 : 0xffffff7f90c2073c
    0xffffff808afa39d0 : 0xffffff7f90c213ae
    0xffffff808afa39f0 : 0xffffff7f90c1d5e6
    0xffffff808afa3a20 : 0xffffff7f90bfadc0
    0xffffff808afa3a50 : 0xffffff7f90be76f3
    0xffffff808afa3aa0 : 0xffffff7f90be76ab
    0xffffff808afa3af0 : 0xffffff7f90be60f1
    0xffffff808afa3b10 : 0xffffff7f90c09f80
    0xffffff808afa3b40 : 0xffffff800f863e8b
    0xffffff808afa3bc0 : 0xffffff800f865eb3
    0xffffff808afa3c20 : 0xffffff800f8638ef
    0xffffff808afa3d70 : 0xffffff800f4981a1
    0xffffff808afa3e80 : 0xffffff800f420abd
    0xffffff808afa3eb0 : 0xffffff800f410448
    0xffffff808afa3f00 : 0xffffff800f4195fb
    0xffffff808afa3f70 : 0xffffff800f4a5ad6
    0xffffff808afa3fb0 : 0xffffff800f4ced13
          Kernel Extensions in backtrace:
             com.apple.NVDAResman(8.0)[6A699209-FB98-316B-A3C0-DCA82AA8C86B]@0xffffff7f8fb37 000->0xffffff7f8fe39fff
                dependency: com.apple.iokit.IOPCIFamily(2.7)[8C9E06A4-13D0-33F5-A377-9E36F0ECC229]@0xffffff 7f8faac000
                dependency: com.apple.iokit.IONDRVSupport(2.3.4)[99CA4184-8D92-31B2-8726-46139E8E3DFF]@0xff ffff7f8fb23000
                dependency: com.apple.iokit.IOGraphicsFamily(2.3.4)[2600903C-EEDE-321B-A023-169DC9B26EA6]@0 xffffff7f8fae0000
             com.apple.nvidia.nv50hal(8.0)[9CD95A4A-FD94-349E-A4B6-FC3B74E197F5]@0xffffff7f8 fe47000->0xffffff7f90169fff
                dependency: com.apple.NVDAResman(8.0.0)[6A699209-FB98-316B-A3C0-DCA82AA8C86B]@0xffffff7f8fb 37000
                dependency: com.apple.iokit.IOPCIFamily(2.7)[8C9E06A4-13D0-33F5-A377-9E36F0ECC229]@0xffffff 7f8faac000
             com.apple.GeForce(8.0)[4B9BE287-5251-398E-96B0-BB16C9BFB2D9]@0xffffff7f90bc6000 ->0xffffff7f90c88fff
                dependency: com.apple.NVDAResman(8.0.0)[6A699209-FB98-316B-A3C0-DCA82AA8C86B]@0xffffff7f8fb 37000
                dependency: com.apple.iokit.IONDRVSupport(2.3.4)[99CA4184-8D92-31B2-8726-46139E8E3DFF]@0xff ffff7f8fb23000
                dependency: com.apple.iokit.IOPCIFamily(2.7)[8C9E06A4-13D0-33F5-A377-9E36F0ECC229]@0xffffff 7f8faac000
                dependency: com.apple.iokit.IOGraphicsFamily(2.3.4)[2600903C-EEDE-321B-A023-169DC9B26EA6]@0 xffffff7f8fae0000
    BSD process name corresponding to current thread: firefox
    Mac OS version:
    12B19
    Kernel version:
    Darwin Kernel Version 12.1.0: Tue Aug 14 13:29:55 PDT 2012; root:xnu-2050.9.2~1/RELEASE_X86_64
    Kernel UUID: 3005059E-270B-3B9F-940D-7A66C05DDC9D
    Kernel slide:     0x000000000f200000
    Kernel text base: 0xffffff800f400000
    System model name: MacBookPro6,2 (Mac-F22586C8)
    System uptime in nanoseconds: 366852391265
    last loaded kext at 182698949955: com.apple.filesystems.smbfs          1.8 (addr 0xffffff7f8fa16000, size 229376)
    last unloaded kext at 221779684551: com.apple.driver.AppleUSBUHCI          5.1.5 (addr 0xffffff7f90429000, size 65536)
    loaded kexts:
    com.apple.filesystems.smbfs          1.8
    com.apple.driver.AppleHWSensor          1.9.5d0
    com.apple.driver.AudioAUUC          1.60
    com.apple.driver.AGPM          100.12.69
    com.apple.filesystems.autofs          3.0
    com.apple.driver.AppleMikeyHIDDriver          122
    com.apple.driver.AppleHDA          2.3.0f2
    com.apple.driver.AppleLPC          1.6.0
    com.apple.driver.AppleMikeyDriver          2.3.0f2
    com.apple.driver.AppleUpstreamUserClient          3.5.10
    com.apple.iokit.BroadcomBluetoothHCIControllerUSBTransport          4.0.9f8
    com.apple.driver.AppleSMCPDRC          1.0.0
    com.apple.driver.AppleSMCLMU          2.0.2d0
    com.apple.driver.ACPI_SMC_PlatformPlugin          1.0.0
    com.apple.driver.AppleMuxControl          3.2.6
    com.apple.driver.AppleMCCSControl          1.0.33
    com.apple.GeForce          8.0.0
    com.apple.driver.AppleIntelHDGraphics          8.0.0
    com.apple.driver.AppleIntelHDGraphicsFB          8.0.0
    com.apple.iokit.IOUserEthernet          1.0.0d1
    com.apple.iokit.IOBluetoothSerialManager          4.0.9f8
    com.apple.Dont_Steal_Mac_OS_X          7.0.0
    com.apple.driver.ApplePolicyControl          3.2.6
    com.apple.driver.SMCMotionSensor          3.0.2d6
    com.apple.driver.AppleUSBTCButtons          235.4
    com.apple.driver.AppleUSBTCKeyboard          235.4
    com.apple.AppleFSCompression.AppleFSCompressionTypeDataless          1.0.0d1
    com.apple.AppleFSCompression.AppleFSCompressionTypeZlib          1.0.0d1
    com.apple.BootCache          34
    com.apple.driver.AppleUSBCardReader          3.1.0
    com.apple.driver.AppleIRController          320.15
    com.apple.iokit.SCSITaskUserClient          3.5.1
    com.apple.driver.XsanFilter          404
    com.apple.driver.AppleUSBHub          5.1.6
    com.apple.iokit.IOAHCIBlockStorage          2.2.1
    com.apple.driver.AirPort.Brcm4331          601.15.21
    com.apple.driver.AppleFWOHCI          4.9.5
    com.apple.driver.AppleUSBEHCI          5.1.5
    com.apple.driver.AppleAHCIPort          2.4.0
    com.apple.iokit.AppleBCM5701Ethernet          3.2.5b3
    com.apple.driver.AppleEFINVRAM          1.6.1
    com.apple.driver.AppleSmartBatteryManager          161.0.0
    com.apple.driver.AppleACPIButtons          1.6
    com.apple.driver.AppleRTC          1.5
    com.apple.driver.AppleHPET          1.7
    com.apple.driver.AppleSMBIOS          1.9
    com.apple.driver.AppleACPIEC          1.6
    com.apple.driver.AppleAPIC          1.6
    com.apple.driver.AppleIntelCPUPowerManagementClient          196.0.0
    com.apple.nke.applicationfirewall          4.0.39
    com.apple.security.quarantine          2
    com.apple.driver.AppleIntelCPUPowerManagement          196.0.0
    com.apple.kext.triggers          1.0
    com.apple.driver.DspFuncLib          2.3.0f2
    com.apple.iokit.IOAudioFamily          1.8.9fc9
    com.apple.kext.OSvKernDSPLib          1.6
    com.apple.iokit.AppleBluetoothHCIControllerUSBTransport          4.0.9f8
    com.apple.iokit.IOFireWireIP          2.2.5
    com.apple.driver.AppleHDAController          2.3.0f2
    com.apple.iokit.IOHDAFamily          2.3.0f2
    com.apple.driver.IOPlatformPluginLegacy          1.0.0
    com.apple.driver.IOPlatformPluginFamily          5.2.0d16
    com.apple.driver.AppleSMBusPCI          1.0.10d0
    com.apple.driver.AppleBacklightExpert          1.0.4
    com.apple.driver.AppleSMBusController          1.0.10d0
    com.apple.nvidia.nv50hal          8.0.0
    com.apple.NVDAResman          8.0.0
    com.apple.iokit.IOSurface          86.0.2
    com.apple.iokit.IOSerialFamily          10.0.6
    com.apple.iokit.IOBluetoothFamily          4.0.9f8
    com.apple.driver.AppleGraphicsControl          3.2.6
    com.apple.iokit.IONDRVSupport          2.3.4
    com.apple.iokit.IOGraphicsFamily          2.3.4
    com.apple.driver.AppleSMC          3.1.3d11
    com.apple.driver.AppleUSBMultitouch          235.7
    com.apple.iokit.IOSCSIBlockCommandsDevice          3.5.1
    com.apple.iokit.IOUSBMassStorageClass          3.5.0
    com.apple.iokit.IOUSBHIDDriver          5.0.0
    com.apple.driver.AppleUSBMergeNub          5.1.5
    com.apple.driver.AppleUSBComposite          5.0.0
    com.apple.iokit.IOSCSIMultimediaCommandsDevice          3.5.1
    com.apple.iokit.IOBDStorageFamily          1.7
    com.apple.iokit.IODVDStorageFamily          1.7.1
    com.apple.iokit.IOCDStorageFamily          1.7.1
    com.apple.iokit.IOAHCISerialATAPI          2.5.0
    com.apple.iokit.IOSCSIArchitectureModelFamily          3.5.1
    com.apple.iokit.IOUSBUserClient          5.0.0
    com.apple.iokit.IO80211Family          500.15
    com.apple.iokit.IOFireWireFamily          4.5.5
    com.apple.iokit.IOAHCIFamily          2.2.0
    com.apple.iokit.IOUSBFamily          5.1.6
    com.apple.iokit.IOEthernetAVBController          1.0.2b1
    com.apple.iokit.IONetworkingFamily          3.0
    com.apple.driver.AppleEFIRuntime          1.6.1
    com.apple.iokit.IOHIDFamily          1.8.0
    com.apple.iokit.IOSMBusFamily          1.1
    com.apple.security.sandbox          220
    com.apple.kext.AppleMatch          1.0.0d1
    com.apple.security.TMSafetyNet          7
    com.apple.driver.DiskImages          344
    com.apple.iokit.IOStorageFamily          1.8
    com.apple.driver.AppleKeyStore          28.18
    com.apple.driver.AppleACPIPlatform          1.6
    com.apple.iokit.IOPCIFamily          2.7
    com.apple.iokit.IOACPIFamily          1.4
    com.apple.kec.corecrypto          1.0

  • Iphone 4s frequent shutdown and rebooting issue

    My iphone 4s goes looses network then restarts or shutdown and start heating up. Requires hardboot to make it functional again. Frequency of restart and shutdown are multiple times a day. Submitted the phone to apple support and they says there is no issue in the phone.  Please help

    did you take it to an Apple Store? Also, are you seeing any of the symptoms in this article?  Not sure where you are physically located, but I've had trouble with mine if I leave it in a hot car during the summer...as described in this article
    http://support.apple.com/kb/HT2101

  • [solved] run dmenu with custom aliases and functions

    Is it possible to run my custom bash aliases and functions with dmenu?
    My aliases are placed in ~/.bash_aliases and my functions are in ~/.bash_functions.
    I source them in my ~/.bashrc through:
    Functions
    if [ -f ~/.bash_functions ]; then
    . ~/.bash_functions
    fi
    # Aliases
    if [ -f ~/.bash_aliases ]; then
    . ~/.bash_aliases
    fi
    Last edited by orschiro (2013-12-27 08:41:40)

    No problem!... sorry, I was about to post an "improved" version, but it breaks support for functions, doh!
    EDIT: finally got it to work as I wanted Sorry, zsh stuff is gone from mine, I don't use it -- feel free to borrow the improvements for your version though!
    v1.4 Changes:
    - removed unnecessary if statements
    - removed unnecessary 'source' command
    - added some logic to see if the command is a real program, or an alias/function - this saves spawning bash shells that aren't needed
    v1.5 TODO list:
    - add some "history" feature so that commonly used commands appear first in the list
    #!/bin/bash
    cachedir=${XDG_CACHE_HOME:-"$HOME/.cache"}
    if [ -d "$cachedir" ]; then
    cache=$cachedir/dmenu_run
    else
    cache=$HOME/.dmenu_cache # if no xdg dir, fall back to dotfile in ~
    fi
    cmd=`(
    IFS=:
    if [ -f ~/.bash_aliases ]; then
    aliases=( ~/.bash_aliases )
    fi
    if [ ~/.bash_functions ]; then
    functions=( ~/.bash_functions )
    fi
    if stest -dqr -n "$cache" $PATH || stest -fqr -n "$cache" "$aliases" || stest -fqr -n "$cache" "$functions"; then
    stest -flx $PATH
    source $aliases
    alias | awk -F '[ =]' '{print $2}'
    compgen -A function
    ) | sort -u | tee "$cache" | dmenu "$@"
    else
    dmenu "$@" < "$cache"
    fi
    )`
    if [ -f ~/.bash_aliases ]; then
    if [ ! -z $(which $cmd) ]; then
    exec $cmd &
    else
    echo -e "source ~/.bash_aliases \n $cmd" | bash -O expand_aliases &
    fi
    fi
    Last edited by dennis123123 (2014-04-21 10:09:39)

Maybe you are looking for

  • Error when execute a package from SQL Server Agent

    We have the next problem: When we execute a package from a Job of SQL Server agent, it shows the success messege, but reviewing the results, the package didnt do all the tasks. When we run it mannually by MSIS the package, it shows the success messag

  • Backspace key not working on SQL Developer 3.2.20.09 on Mac OS X 10.7.4

    Hi, I've searched around and found that the backspace and arrow key problem has been a known issue on 1.x versions of SQL Developer. In that version the fix was to reload the keyboard Accellerator bindings in Tools->Preferences->Accellerators. Howeve

  • HT5517 how do i play a game using airplay

    How do I play games that are on my mobile through apple tv airplay

  • PSU Loading

    Whats the best way to load up and test a PSU ? If you look at my config now, I might be getting close to the fringe of acceptabilty, despite a 180w rated 3.3v + 5v combination maximum, basis this: http://www.pcpowercooling.com/maxpc/index_cases.htm T

  • I have an error message that won't go away.

    The message says "This iPad hasn't been backed up in 5 weeks.  Backups happen when this iPad is plugged in, locked and connected to Wi-Fi."  I have tried to do as instructed, but it doesn't seem to backup and the message won't go away.  I can't even