Make daemons start after boot?

Can I make daemons start after the boot has ended? Netcfg uses about 10 seconds connecting to my wireless network, and the mounting of my windows share (trough fstab, using cifs) takes even longer. Therefore, I'd like to know if there's a way to start netcfg as a daemon and/or also mount my share after I've gotten into Arch and/or X after boot?
Can I use something like .xinitrc for this?
Last edited by Bennythen00b (2010-12-18 23:30:04)

I tried that, but my windows share won't mount then for some reason. :-/
E: To be a little more specific, I backgrounded "net-profiles" and "network". I assume this doesn't work because whatever executes fstab tries to mount the share and fails before the network has finished connecting, or are daemons queued in the background too?
Anyway, just having "network" backgrounded works rather well, and I only have to wait for my wifi to connect. Not a huge problem, but I'd prefer having it start in the background in some way.
Last edited by Bennythen00b (2010-12-19 02:44:08)

Similar Messages

  • [SOLVED] systemd/cron as user: timer doesn't start after boot

    Hello,
    I've tried to follow the wiki's systemd/cron functionality article to have a systemd service to run hourly.
    Everything seems to be working ok, except that the hourly timer doesn't start automatically : I have to issue a
    systemctl --user timer-hourly.timer start
    command every time I start the machine to get the timer running.
    Can you help me understand what I'm missing to get the (user) timer to start automatically after boot?
    Thanks!
    My setup consists of the following files:
    /home/myuser/.config/systemd/user:
    drwxr-xr-x 2 myuser users 4096 Jun 25 17:30 basic.target.wants/
    -rw-r--r-- 1 myuser users 217 Jun 25 10:08 db_backup.service
    -rw-r--r-- 1 myuser users 232 Jun 25 10:08 test.service
    -rw-r--r-- 1 myuser users 61 Jun 19 12:14 timer-hourly.target
    drwxr-xr-x 2 myuser users 4096 Jun 25 10:10 timer-hourly.target.wants/
    -rw-r--r-- 1 myuser users 134 Jun 19 12:14 timer-hourly.timer
    /home/myuser/.config/systemd/user/basic.target.wants/:
    lrwxrwxrwx 1 myuser users 50 Jun 25 10:08 timer-hourly.timer -> /home/myuser/.config/systemd/user/timer-hourly.timer
    /home/myuser/.config/systemd/user/timer-hourly.target.wants/:
    lrwxrwxrwx 1 myuser users 49 Jun 13 15:51 db_backup.service -> /home/myuser/.config/systemd/user/db_backup.service
    lrwxrwxrwx 1 myuser users 44 Jun 25 10:10 test.service -> /home/myuser/.config/systemd/user/test.service
    timer-hourly.timer:
    [Unit]
    Description=Hourly Timer
    [Timer]
    OnBootSec=5min
    OnCalendar=hourly
    Unit=timer-hourly.target
    [Install]
    WantedBy=basic.target
    timer-hourly.target:
    [Unit]
    Description=Hourly Timer Target
    StopWhenUnneeded=yes
    test.service:
    [Unit]
    Description=Run a test (echo) job every hour
    Wants=timer-hourly.timer
    [Service]
    Nice=19
    IOSchedulingClass=2
    IOSchedulingPriority=7
    ExecStart=/usr/bin/python /home/myuser/test_service.py
    [Install]
    WantedBy=timer-hourly.target
    db_backup.service:
    [Unit]
    Description=Backups databases
    Wants=timer-hourly.timer
    [Service]
    Nice=19
    IOSchedulingClass=2
    IOSchedulingPriority=7
    ExecStart=/home/myuser/source/db_backups/db_backup.sh
    [Install]
    WantedBy=timer-hourly.target
    test_service.py is a simple python script that appends the current time to a file, to check if the service is being run by the timer. (it is after I start the timer after boot, and runs correctly every hour)
    db_backup.sh is a script that dumps a database into a text file in a mercurial repository, commits the change and pushes it to backup locations.
    Last edited by fede (2014-06-25 21:06:09)

    Have you tried this:
    systemctl --user enable timer-hourly.timer

  • How to make pboard start on boot? -- No copy & paste

    Hello everyone -
    I had a hard disk failure on my Macbook this week. I replaced the hard drive and restored from a Time Machine image. Now I have no copy/paste or drag/drop working.
    I have tried running Cocktail, Disk Util, fsck (in single-user mode), as well as AppleJack. I have installed the 10.5.5 combo updater.
    I have been Googling the issue and it seems that pboard not launching at boot time. If I go to a Terminal and type 'pboard' to run it, my copy and paste and drag/drop come back.
    How can I tell OS X to launch pboard automatically on boot?
    Thanks so much...I'm about to lose my mind!
    -- N
    Message was edited by: natallica

    I'm guessing that since I had bad sectors on the hard drive when I ran fsck it moved a bunch of stuff to lost+found trying to repair the file system. I would guess that the file may have been in a bad section of the hard drive and that's how it got "misplaced."
    So far the computer is acting normally. I'm hoping it stays this way until Snow Leopard comes out and then I plan on doing a full wipe and install to make sure everything is fresh and clean!
    -- N
    Message was edited by: natallica

  • Won't Start after boot

    Alright after I type in my password my background shows and so does my mouse clicker. I can move the clicker around,raise volume,etc the problem is that my menu bar in the bottom and my top bar never show except for the search button on the top right of the screen. Only that when I try to click on it, the mouse tells me that it is loading, what is the problem? I thought it would take a it a while to load, but doing that hasn't helped either.
    This barely happened this morning after downloading the new itunes and quicktime updates and after restarting my computer, I don't want to lose all my files since I'm starting to think resetting the computer is the only way I'm going to be able to fix it.
    Anybody please help!

    Alright after I type in my password my background shows and so does my mouse clicker. I can move the clicker around,raise volume,etc the problem is that my menu bar in the bottom and my top bar never show except for the search button on the top right of the screen. Only that when I try to click on it, the mouse tells me that it is loading, what is the problem? I thought it would take a it a while to load, but doing that hasn't helped either.
    This barely happened this morning after downloading the new itunes and quicktime updates and after restarting my computer, I don't want to lose all my files since I'm starting to think resetting the computer is the only way I'm going to be able to fix it.
    Anybody please help!

  • MDT Deployment Wizard doesn't start after booting from the LiteTouchPE.iso

    Hello Experts,
    I'm using the MDT 2013. When I boot the Physical machine or VM with the LiteTouchPEx86 or x64, I'm not getting the Deployment Wizard. It just stops with a command prompt X:\Windows\System32>. Anyone faced this problem earlier. I searched the Technet, but
    I couldn't find any solutions.
    I've done all the possible things which I know. Please help.
    Regards,
    Sukumar. R.

    You are getting some kind of crash, or your variables are not setup correctly.
    From the command prompt (X:\Windows\System32 ) Run the following command and let us know what the error message is (exactly):
    cscript x:\deploy\scripts\litetouch.wsf /debug:true /debugcapture
    It should crash or exit with error error. If it does not crash with a specific line number, then please copy the bdd.log file to a public site like OneDrive and copy the link here.
    Keith Garner - Principal Consultant [owner] -
    http://DeploymentLive.com

  • Systemd: Slim fails to start automatically after boot

    Hi, after some update a couple of weeks ago (I don't remember exactly), slim fails to start after boot. I use systemd and just had enabled the slim.service file that is included in the package. After boot, I can login on the tty and then restart the slim.service, and everything works.
    In the slim.log file it says:
    Fatal server error:
    no screens found
    Giving up.
    slim: unable to connect to X server
    /usr/bin/xauth: file /var/run/slim.auth does not exist
    It seems like slim is started before X, since everything works when I restart the service manually. What is causing this problem and how can I solve it?
    Best regards and thanks,
    Jan Oliver

    oliarch ~ sudo systemd-analyze blame
    2460ms net-auto-wireless.service
    243ms rsyslog.service
    239ms sshd.service
    183ms console-kit-log-system-start.service
    136ms systemd-logind.service
    124ms console-kit-daemon.service
    119ms systemd-udev-trigger.service
    99ms systemd-sysctl.service
    82ms systemd-readahead-replay.service
    80ms systemd-vconsole-setup.service
    63ms systemd-user-sessions.service
    62ms systemd-remount-fs.service
    58ms systemd-readahead-collect.service
    55ms sys-kernel-debug.mount
    43ms dev-sda2.swap
    43ms dev-mqueue.mount
    42ms dev-hugepages.mount
    26ms systemd-tmpfiles-setup.service
    20ms srv.mount
    13ms tmp.mount
    12ms systemd-udev.service
    10ms boot.mount
    9ms home.mount
    oliarch ~ sudo journalctl --no-pager -a | grep slim
    Jun 24 14:25:01 oliarch systemd[1]: slim.service: main process exited, code=exited, status=1
    Jun 24 14:25:01 oliarch systemd[1]: Unit slim.service entered failed state.

  • Oracle 10 g OEM does not start after XP boot

    Hallo!I am currently studying for the Oracle 10g Administration OCA
    I installed Oracle 10 g on Windows XP but once I boot the OS and enter the OEM url on the browser,OEM does not load.
    I am forced to go to the command prompt and manually start OEM via the command
    emctl start dbconsole.
    How can I configure my oracle to enable OEM to automatically start after booting the OS?
    Thanks.

    Hans Forbrich wrote:
    user11114098 wrote:
    During installation,the computer was connected to the internet via a modem that uses DHCP?So typical.
    How do I resolve this issue?Microsoft Loopback Adapter. Force it to a static IP value, and enter that value in the hosts. table.
    How?: Discussed more than a few times in these forums. Discussed in Microsoft forums. Discussed on internet.Also discussed in the Fine Installation Guide ... ;-)

  • [SOLVED] wicd-gui starts on boot, although not in rc.conf

    Hello,
    since I seem to can#t find the solution I quickly ask here for some help.
    I was using wicd as network manager. But then I switched to the gnome networkmanager.
    Thus, I removed wicd from the daemons and added networkmanager.
    However, now networkmanager works as wanted, but the wicd-gui still starts after boot (wicd is not running).
    Where do I nee to change the config in order to disable not only wicd but also wicd-gui?
    Thx!
    Last edited by Jankosevic (2012-02-18 10:24:16)

    hadrons123 wrote:Try removing it from startup , by going to  'gnome-session-properties' in your terminal.
    Thx! That worked.

  • Lenovo Services/P​rogram takes a long time to start after bootup

    It seems like Lenovo services take a long time to start after boot up is completely done.
    My Bootup time is less than a minute (0:51s), but my lenovo services (Power Manager Gauage, Lenovo Services in the Sidebar, have th ThinkVanatage Button work, and most annoying of all is having access to my network card to change networks) takes about 2 minutes.
    Is there a reason why this is taking so long?
    I've uninstalled and installed the lastest Lenovo Interface Driver, and a lot of ThinkVantage/Lenovo software and drivers.
    Any ideas?

    No response?
    Anyone else on T400 notice this?

  • HT4790 My Mac OS Lion 10.7 FileVaulted HD does not boot, prohibitory sign, stop sign appears some minutes after boot starts. Disk Utility repair shows four error messages: Unable to bootstrap transaction group 2517: inconsistent crosscheck (the same with

    My Mac OS Lion 10.7 FileVaulted HD does not boot, prohibitory sign, stop sign appears some minutes after boot starts. Disk Utility repair shows four error messages:
    Unable to bootstrap transaction group 2517: inconsistent crosscheck
    No valid commit checkpoint found
    The volume xxxxxxxxxxxxxx(here it shows physical volume number) was found corrupt and can not be repaired.
    Problems were encountered during repair of the partition map
    Error: Storage system verify or repair failed.
    (the same with 2518, 2519 and 2520 transaction group)
    I suppose it is serious bug in Mac OS Lion managing FileVault and wonder what the help could be?

    Most likely culprit is your Lacie drives which are notorious for flaky power supplies which cause just the sort of erratic behaviour that you describe. Have had similar issues myself. Lacie has been good about replacing my power converter-- twice. If you have seven of them, good luck finding the bad one or more. Like I said, the behaviour is erratic. Sometimes it'll work sometimes not. I can't comment on Samsung drives because I've never used them and have never heard anything about them. Same with Softraid. Why not just use Disk Utility. Sounds like you're ready for an external hardware raid. This will be much faster, much more reliable, and may even be cheaper than seven firewire drives. Check out G Tech, and Maxx Digital for starters.
    Best of luck
    Terry

  • GRUB won't start after installation. Boots direktly to Windows 7

    Hello,
    I am having a hard time installing Arch next to Windows 7 on an UEFI Notebook.
    The partitions of the HDD (GPT) looks like this:
    sda1 Boot partition, fat32, 400 MiB. Mounted as GRUB Wiki says at /boot/efi
    sda2 swap
    sda3 Arch
    sda4 Windows 7
    First I install Windows 7 which workes without problems.
    After that is done I start installing Arch. All goes well without any errors till the end.
    For installing GRUB I use
    grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=arch_grub --recheck
    and
    grub-mkconfig -o /boot/grub/grub.cfg
    Both finish without errors.
    First problem is os-prober never mangaged to find Windows 7 by itself. Not once in 6 installation retries.
    Second problem. After I finished installtation and rebooting, GRUB doesn't show. It direktly starts to boot Windows.
    I'm following the Beginners Installation Guide step by step (except the GRUB part). What am I doing wrong?
    Are the Mountpoints wrong?
    I don't know which config files you need to help.
    Last edited by Peikko (2013-08-13 11:08:55)

    It did change but only for this session. After a reboot, the order was reset again.
    But this is not the problem anymore.
    I have found the solution for this problem here: http://www.jsravn.com/2013/06/26/thinkp … -arch.html
    The only problem that still exists is that os-prober is not able to detect the existing Windows 7 partition and add it to the GRUB menu.

  • Macbook air shuts down after starting to boot up

    My mac book air starts to boot up (the wheal starts to turn for about 30s) than it just turns of
    it was working fine a few hours ago, i did a hardware test (every thing was OK) and after that the problem occurred
    PRAM Reset did't help
    Message was edited by: Zabranjeni

    Get a USB external DVD drive, boot from your install disc and try repairing the drive with your Disk Utility. If that does not work, try DiskWarrior, short of reformatting the drive and losing all your data.
    Dave M.
    MacOSG v.2.0 coming April 1, 2010! No fooling! Check it out!
     MacOSG: An Apple User Group  iTunes: MacOSG Podcast  Follow us on Twitter: MacOSG

  • Why does installation not start after the message "setup wants to make changes"?

    Why does installation not start after the message "Setup wants to make changes.  Type your password to allow this"?

    Hi
    It wants your system's admin password. Standard procedure on Mac for non-admin users
    Thanks

  • My Mac Mini starts to boot up then after a few minutes turns off.  Please help.

    My Mac Mini starts to boot up then after a few minutes turns off.  Please help.

    seen this happen many times, usually always due to corrupt memory.......could be a power module in the Mini, but unlikely.  hold down command R on startup, see if you can get into safe mode or ANY SCREEN ...If under warr. call mac for a service check, ....BUT if you have spare memory around that is compatable, try that first, process of elimination diagnostics.

  • MacBook Pro 13" Late 2011 Experiencing Significant Slow Down After Boot Camp Installation

         Okay, so today, after installing Windows 7 on my MacBook Pro via Bootcamp Assistant, I experienced significant performance slow down (fans going at full blast, applications opening after extended periods of time, keystrokes not being registered) when I returned to my OS X partition/second hard drive. I have dual hard drives, one of them being a Samsung 256 GB SSD with OS X Mavericks and the other being my original 500 GB HDD, divided into a 250 GB OS X Mavericks partition and a 250 GB Windows partition. I have the SSD set as my startup disk and I have it located in the main HDD bay. I moved the old HDD into a caddy and placed it where the optical drive normally should be.
          After multiple failed attempts to install Windows via USB and Bootcamp Assistant, I decided to reinstall my optical drive and use a Windows installation disk. This attempt proved successful, and I was able to install Windows 7 onto the 250 GB partition I had created for it on the 500 GB HDD. After completing basic setup of Windows, I removed the optical disk drive and reinstalled the SSD and the HDD into their original spots (SSD in the main HDD bay, HDD in the caddy where the optical drive normally is).
         After completing this tedious process, I booted my Mac back up using the SSD. However, I noticed something was wrong when the login screen, apps, and nearly everything else on my desktop had slowed to crawl. I decided to check my Activity Monitor to see what the problem might be. Activity Monitor told me that the task "kernel_task" was taking up anywhere from 200-600% of my CPU, which explained the slowdown in performance. I looked around to see if there were others with the same problem as me, and I found that Spotlight Indexing might be an issue, with a potential remedy being move my Bootcamp Partition into the Privacy section of Spotlight under System Preferences. After doing that, I experienced no increase in performance and everything was still going very slowly.
         The next step I took was to see if booting into Safe Mode would help the issue. After booting into Safe Mode on my SSD, I noticed that things were back to their normal speeds, with applications opening at the speed they should be and keystrokes being registered instantaneously. However, the fans were still going and had not shut off once booting into Safe Mode. In addition, I checked Activity Monitor and the "kernel_task" in question was no longer taking up massive amounts of the CPU.
         At this point, I don't know what to do and I need help in restoring my Mac to original speeds. I may end up deleting my Boot Camp partition as a last measure if all else fails, seeing as I installed Windows in the first place for running a few programs and games that I can live without. However, I'd prefer to not have things come to that and fix things before deleting the Boot Camp Partition. I've heard that if everything runs normally in Safe Mode, then the issue is third-party software. Is this true?
         Any help would be greatly appreciated as I am writing this from the MacBook in question in Safe Mode because it's essentially useless in normal SSD operation.

    1. This procedure is a diagnostic test. It changes nothing, for better or worse, and therefore will not, in itself, solve the problem. But with the aid of the test results, the solution may take a few minutes, instead of hours or days.
    Don't be put off merely by the seeming complexity of these instructions. The process is much less complicated than the description. You do harder tasks with the computer all the time.
    2. If you don't already have a current backup, back up all data before doing anything else. The backup is necessary on general principle, not because of anything in the test procedure. Backup is always a must, and when you're having any kind of trouble with the computer, you may be at higher than usual risk of losing data, whether you follow these instructions or not.
    There are ways to back up a computer that isn't fully functional. Ask if you need guidance.
    3. Below are instructions to run a UNIX shell script, a type of program. All it does is to collect information about the state of the computer. That information goes nowhere unless you choose to share it. However, you should be cautious about running any kind of program (not just a shell script) at the behest of a stranger. If you have doubts, search this site for other discussions in which this procedure has been followed without any report of ill effects. If you can't satisfy yourself that the instructions are safe, don't follow them. Ask for other options.
    Here's a summary of what you need to do, if you choose to proceed:
    Copy a line of text in this window to the Clipboard.
    Paste into the window of another application.
    Wait for the test to run. It usually takes a few minutes.
    Paste the results, which will have been copied automatically, back into a reply on this page.
    The sequence is: copy, paste, wait, paste again. You don't need to copy a second time. Details follow.
    4. You may have started the computer in "safe" mode. Preferably, these steps should be taken in “normal” mode, under the conditions in which the problem is reproduced. If the system is now in safe mode and works well enough in normal mode to run the test, restart as usual. If you can only test in safe mode, do that.
    5. If you have more than one user, and the one affected by the problem is not an administrator, then please run the test twice: once while logged in as the affected user, and once as an administrator. The results may be different. The user that is created automatically on a new computer when you start it for the first time is an administrator. If you can't log in as an administrator, test as the affected user. Most personal Macs have only one user, and in that case this section doesn’t apply. Don't log in as root.
    6. The script is a single long line, all of which must be selected. You can accomplish this easily by triple-clicking anywhere in the line. The whole line will highlight, though you may not see all of it in the browser window, and you can then copy it. If you try to select the line by dragging across the part you can see, you won't get all of it.
    Triple-click anywhere in the line of text below on this page to select it:
    PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/libexec;clear;cd;p=(Software Hardware Memory Diagnostics Power FireWire Thunderbolt USB Fonts 51 4 1000 25 5120 KiB/s 1024 85 \\b%% 20480 1 MB/s 25000 ports ' \*AutoCad \*dropbox \*GoogleDr\* vidinst\* ' DYLD_INSERT_LIBRARIES\ DYLD_LIBRARY_PATH -86 ` route -n get default|awk '/e:/{print $2}' ` 25 N\\/A down up 102400 25600 recvfrom sendto CFBundleIdentifier 25 25 25 1000 MB com.apple.AirPortBaseStationAgent 464843899 );N5=${#p[@]};p[N5]=` networksetup -listnetworkserviceorder|awk ' NR>1 { sub(/^\([0-9]+\) /,"");n=$0;getline;} $NF=="'${p[26]}')" { sub(/.$/,"",$NF);print n;exit;} ' `;f=('\n%s: %s\n' '\n%s\n\n%s\n' '\nRAM details\n%s\n' %s\ %s '%s\n-\t%s\n' );S0() { echo ' { q=$NF+0;$NF="";u=$(NF-1);$(NF-1)="";gsub(/^ +| +$/,"");if(q>='${p[$1]}') printf("%s (UID %s) is using %s '${p[$2]}'",$0,u,q);} ';};s=(' /^ *$|CSConfigDot/d;s/^ */  /;s/[-0-9A-Fa-f]{22,}/UUID/g;s/(ochat)\.[^.]+(\..+)/\1\2/;/Shared/!s/\/Users\/[^/]+/~/g ' ' s/^ +//;5p;6p;8p;12p;' ' {sub(/^ +/,"")};NR==6;NR==13&&$2<'${p[10]} ' 1s/://;3,6d;/[my].+:/d;s/^ {4}//;H;${ g;s/\n$//;/s: [^EO]|x([^08]|02[^F]|8[^0])/p;} ' ' 5h;6{ H;g;/P/!p;} ' ' ($1~/^Cy/&&$3>'${p[11]}')||($1~/^Cond/&&$2!~/^N/) ' ' /:$/{ N;/:.+:/d;s/ *://;b0'$'\n'' };/^ *(V.+ [0N]|Man).+ /{ s/ 0x.... //;s/[()]//g;s/(.+: )(.+)/ (\2)/;H;};$b0'$'\n'' d;:0'$'\n'' x;s/\n\n//;/Apple[ ,]|Intel|SMSC/d;s/\n.*//;/\)$/p;' ' s/^.*C/C/;H;${ g;/No th|pms/!p;} ' '/= [^GO]/p' '{$1=""};1' ' /Of/!{ s/^.+is |\.//g;p;} ' ' $0&&!/ / { n++;print;} END { if(n<200) print "com.apple.";} ' ' $3~/[0-9]:[0-9]{2}$/ { gsub(/:[0-9:a-f]{14}/,"");} { print|"tail -n'${p[12]}'";} ' ' NR==2&&$4<='${p[13]}' { print $4;} ' ' END { $2/=256;if($2>='${p[15]}') print int($2) } ' ' NR!=13{next};{sub(/[+-]$/,"",$NF)};'"`S0 21 22`" 'NR!=2{next}'"`S0 37 17`" ' NR!=5||$8!~/[RW]/{next};{ $(NF-1)=$1;$NF=int($NF/10000000);for(i=1;i<=3;i++){$i="";$(NF-1-i)="";};};'"`S0 19 20`" 's:^:/:p' '/\.kext\/(Contents\/)?Info\.plist$/p' 's/^.{52}(.+) <.+/\1/p' ' /Launch[AD].+\.plist$/ { n++;print;} END { print "'${p[41]}'";if(n<200) print "/System/";} ' '/\.xpc\/(Contents\/)?Info\.plist$/p' ' NR>1&&!/0x|\.[0-9]+$|com\.apple\.launchctl\.(Aqua|Background|System)$|'${p[41]}'/ { print $3;} ' ' /\.(framew|lproj)|\):/d;/plist:|:.+(Mach|scrip)/s/:[^:]+//p ' '/root/p' ' !/\/Contents\/.+\/Contents|Applic|Autom|Frameworks/&&/Lib.+\/Info.plist$/ { n++;print;} END { if(n<1000) print "/System/";} ' '/^\/usr\/lib\/.+dylib$/p' ' /Temp|emac/ { next;} /(etc|Preferences|Launch[AD].+)\// { sub(".(/private)?","");n++;print;} END { print "'${p[41]}'.plist\t'${p[42]}'";if(n<500) print "Launch";} ' ' /\/(Contents\/.+\/Contents|Frameworks)\/|\.wdgt\/.+\.([bw]|plu)/d;p;' 's/\/(Contents\/)?Info.plist$//;p' ' { gsub("^| |\n","\\|\\|kMDItem'${p[35]}'=");sub("^...."," ") };1 ' p '{print $3"\t"$1}' 's/\'$'\t''.+//p' 's/1/On/p' '/Prox.+: [^0]/p' '$2>'${p[9]}'{$2=$2-1;print}' ' BEGIN { i="'${p[26]}'";M1='${p[16]}';M2='${p[18]}';M3='${p[31]}';M4='${p[32]}';} !/^A/ { next;} /%/ { getline;if($5<M1) a="user "$2"%, system "$4"%";} /disk0/&&$4>M2 { b=$3" ops/s, "$4" blocks/s";} $2==i { if(c) { d=$3+$4+$5+$6;next;};if($4>M3||$6>M4) c=int($4/1024)" in, "int($6/1024)" out";} END { if(a) print "CPU: "a;if(b) print "I/O: "b;if(c) print "Net: "c" (KiB/s)";if(d) print "Net errors: "d" packets/s";} ' ' /r\[0\] /&&$NF!~/^1(0|72\.(1[6-9]|2[0-9]|3[0-1])|92\.168)\./ { print $NF;exit;} ' ' !/^T/ { printf "(static)";exit;} ' '/apsd|OpenD/!s/:.+//p' ' (/k:/&&$3!~/(255\.){3}0/ )||(/v6:/&&$2!~/A/ ) ' ' $1~"lR"&&$2<='${p[25]}';$1~"li"&&$3!~"wpa2";' ' BEGIN { FS=":";} { n=split($3,a,".");sub(/_2[01].+/,"",$3);print $2" "$3" "a[n]" "$1;b=b$1;} END { if(b) print("\n\t* Code injection");} ' ' NR!=4{next} {$NF/=10240} '"`S0 27 14`" ' END { if($3~/[0-9]/)print$3;} ' ' BEGIN { L='${p[36]}';} !/^[[:space:]]*(#.*)?$/ { l++;if(l<=L) f=f"\n  "$0;} END { F=FILENAME;if(!F) exit;if(!f) f="\n  [N/A]";"file -b "F|getline T;if(T!~/^(AS.+ (En.+ )?text$|POSIX sh.+ text ex)/) F=F" ("T")";printf("\nContents of %s\n%s\n",F,f);if(l>L) printf("\n  ...and %s more line(s)\n",l-L);} ' ' /^ +[NP].+ =/h;/^( +D.+[{]|[}])/{ g;s/.+= //p;};' 's/0/Off/p' ' END{print NR} ' ' /id: N|te: Y/{i++} END{print i} ' ' / / { print "'"${p[28]}"'";exit;};1;' '/ en/!s/\.//p' ' NR!=13{next};{sub(/[+-M]$/,"",$NF)};'"`S0 39 40`" ' $10~/\(L/&&$9!~"localhost" { sub(/.+:/,"",$9);print $1": "$9;} ' '/^ +r/s/.+"(.+)".+/\1/p' 's/(.+\.wdgt)\/(Contents\/)?Info\.plist$/\1/p' 's/^.+\/(.+)\.wdgt$/\1/p' );c1=(system_profiler pmset\ -g nvram fdesetup find syslog df vm_stat sar ps sudo\ crontab sudo\ iotop top pkgutil 'PlistBuddy 2>&1 -c "Print' whoami cksum kextstat launchctl sudo\ launchctl crontab 'sudo defaults read' stat lsbom mdfind ' for i in ${p[24]};do ${c1[18]} ${c2[27]} $i;done;' defaults\ read scutil sudo\ dtrace sudo\ profiles sed\ -En awk /S*/*/P*/*/*/C*/*/airport networksetup mdutil sudo\ lsof test );c2=(com.apple.loginwindow\ LoginHook '" /L*/P*/loginw*' '" L*/P*/*loginit*' 'L*/Ca*/com.ap*.Saf*/E*/* -depth 1 -name In*t -exec '"${c1[14]}"' :CFBundleDisplayName" {} \;' '~ $TMPDIR.. \( -flags +sappnd,schg,uappnd,uchg -o ! -user $UID -o ! -perm -600 \)' '.??* -path .Trash -prune -o -type d -name *.app -print -prune' :${p[35]}\" :Label\" '{/,}L*/{Con,Pref}* -type f ! -size 0 -name *.plist -exec plutil -s {} \;' "-f'%N: %l' Desktop L*/Keyc*" therm sysload boot-args status " -F '\$Time \$Message' -k Sender kernel -k Message Req 'bad |Beac|caug|dead[^bl]|FAIL|fail|GPU |hfs: Ru|inval|jnl:|last value [1-9]|n Cause: -|NVDA\(|pagin|proc: t|Roamed|rror|ssert|Thrott|tim(ed? ?|ing )o|WARN' -k Message Rne 'Goog|ksadm|SMC:' -o -k Sender fseventsd -k Message Req 'SL' " '-du -n DEV -n EDEV 1 10' 'acrx -o comm,ruid,%cpu' '-t1 10 1' '-f -pfc /var/db/r*/com.apple.*.{BS,Bas,Es,J,OSXU,Rem,up}*.bom' '{/,}L*/Lo*/Diag* -type f -regex .\*[cgh] ! -name *ag \( -exec grep -lq "^Thread c" {} \; -exec printf \* \; -o -true \) -execdir stat -f:%Sc:%N -t%F {} \;|sort -t: -k2 |tail -n'${p[38]} '-L {/{S*/,},}L*/Lau* -type f' '-L /{S*/,}L*/StartupItems -type f -exec file {} +' '-L /S*/L*/{C*/Sec*A,E}* {/,}L*/{A*d,Ca*/*/Ex,Compon,Ex,In,iTu,Keyb,Mail/B,P*P,Qu*T,Scripti,Sec,Servi,Spo,Widg}* -type f -name Info.plist' '/usr/lib -type f -name *.dylib' `awk "${s[31]}"<<<${p[23]}` "/e*/{auto,{cron,fs}tab,hosts,{[lp],sy}*.conf,pam.d/*,ssh{,d}_config,*.local} {,/usr/local}/etc/periodic/*/* /L*/P*{,/*}/com.a*.{Bo,sec*.ap}*t /S*/L*/Lau*/*t .launchd.conf" list getenv /Library/Preferences/com.apple.alf\ globalstate --proxy '-n get default' -I --dns -getdnsservers\ "${p[N5]}" -getinfo\ "${p[N5]}" -P -m\ / '' -n1 '-R -l1 -n1 -o prt -stats command,uid,prt' '--regexp --only-files --files com.apple.pkg.*|sort|uniq' -kl -l -s\ / '-R -l1 -n1 -o mem -stats command,uid,mem' -i4TCP:0-1023 com.apple.dashboard\ layer-gadgets '-d /L*/Mana*/$USER&&echo On' '-app Safari WebKitDNSPrefetchingEnabled' );N1=${#c2[@]};for j in {0..8};do c2[N1+j]=SP${p[j]}DataType;done;N2=${#c2[@]};for j in 0 1;do c2[N2+j]="-n ' syscall::'${p[33+j]}':return { @out[execname,uid]=sum(arg0) } tick-10sec { trunc(@out,1);exit(0);} '";done;l=(Restricted\ files Hidden\ apps 'Elapsed time (s)' POST Battery Safari\ extensions Bad\ plists 'High file counts' User Heat System\ load boot\ args FileVault Diagnostic\ reports Log 'Free space (MiB)' 'Swap (MiB)' Activity 'CPU per process' Login\ hook 'I/O per process' Mach\ ports kexts Daemons Agents launchd Startup\ items Admin\ access Root\ access Bundles dylibs Apps Font\ issues Inserted\ dylibs Firewall Proxies DNS TCP/IP Wi-Fi Profiles Root\ crontab User\ crontab 'Global login items' 'User login items' Spotlight Memory Listeners Widgets Parental\ Controls Prefetching );N3=${#l[@]};for i in 0 1 2;do l[N3+i]=${p[5+i]};done;N4=${#l[@]};for j in 0 1;do l[N4+j]="Current ${p[29+j]}stream data";done;A0() { id -G|grep -qw 80;v[1]=$?;((v[1]==0))&&sudo true;v[2]=$?;v[3]=`date +%s`;clear >&-;date '+Start time: %T %D%n';};for i in 0 1;do eval ' A'$((1+i))'() { v=` eval "${c1[$1]} ${c2[$2]}"|'${c1[30+i]}' "${s[$3]}" `;[[ "$v" ]];};A'$((3+i))'() { v=` while read i;do [[ "$i" ]]&&eval "${c1[$1]} ${c2[$2]}" \"$i\"|'${c1[30+i]}' "${s[$3]}";done<<<"${v[$4]}" `;[[ "$v" ]];};A'$((5+i))'() { v=` while read i;do '${c1[30+i]}' "${s[$1]}" "$i";done<<<"${v[$2]}" `;[[ "$v" ]];};';done;A7(){ v=$((`date +%s`-v[3]));};B2(){ v[$1]="$v";};for i in 0 1;do eval ' B'$i'() { v=;((v['$((i+1))']==0))||{ v=No;false;};};B'$((3+i))'() { v[$2]=`'${c1[30+i]}' "${s[$3]}"<<<"${v[$1]}"`;} ';done;B5(){ v[$1]="${v[$1]}"$'\n'"${v[$2]}";};B6() { v=` paste -d: <(printf "${v[$1]}") <(printf "${v[$2]}")|awk -F: ' {printf("'"${f[$3]}"'",$1,$2)} ' `;};B7(){ v=`grep -Fv "${v[$1]}"<<<"$v"`;};C0(){ [[ "$v" ]]&&echo "$v";};C1() { [[ "$v" ]]&&printf "${f[$1]}" "${l[$2]}" "$v";};C2() { v=`echo $v`;[[ "$v" != 0 ]]&&C1 0 $1;};C3() { v=`sed -E "$s"<<<"$v"`&&C1 1 $1;};for i in 1 2;do for j in 2 3;do eval D$i$j'(){ A'$i' $1 $2 $3; C'$j' $4;};';done;done;{ A0;A2 0 $((N1+1)) 2;C0;A1 0 $N1 1;C0;B0;C2 27;B0&&! B1&&C2 28;D12 15 37 25 8;A1 0 $((N1+2)) 3;C0;D13 0 $((N1+3)) 4 3;D23 0 $((N1+4)) 5 4;for i in 0 1 2;do D13 0 $((N1+5+i)) 6 $((N3+i));done;D13 1 10 7 9;D13 1 11 8 10;D22 2 12 9 11;D12 3 13 10 12;D23 4 19 44 13;D23 5 14 12 14;D22 6 36 13 15;D22 7 37 14 16;D23 8 15 38 17;D22 9 16 16 18;B1&&{ D22 11 17 17 20;for i in 0 1;do D22 28 $((N2+i)) 45 $((N4+i));done;};D22 12 44 54 45;D22 12 39 15 21;A1 13 40 18;B2 4;B3 4 0 19;A3 14 6 32 0;B4 0 5 11;A1 17 41 20;B7 5;C3 22;B4 4 6 21;A3 14 7 32 6;B4 0 7 11;B3 4 0 22;A3 14 6 32 0;B4 0 8 11;B5 7 8;B1&&{ A2 19 26 23;B7 7;C3 23;};A2 18 26 23;B7 7;C3 24;A2 4 20 21;B7 6;B2 9;A4 14 7 52 9;B2 10;B6 9 10 4;C3 25;D13 4 21 24 26;B4 4 12 26;B3 4 13 27;A1 4 22 29;B7 12;B2 14;A4 14 6 52 14;B2 15;B6 14 15 4;B3 0 0 30;C3 29;A1 4 23 27;B7 13;C3 30;D13 24 24 32 31;D13 25 37 32 33;A2 23 18 28;B2 16;A2 16 25 33;B7 16;B3 0 0 34;B2 21;A6 47 21&&C0;B1&&{ D13 21 0 32 19;D13 10 42 32 40;D22 29 35 46 39;};D13 14 1 48 42;D12 34 43 53 44;D22 0 $((N1+8)) 51 32;D13 4 8 41 6;D12 26 28 35 34;D13 27 29 36 35;A2 27 32 39&&{ B2 19;A2 33 33 40;B2 20;B6 19 20 3;};C2 36;D23 33 34 42 37;B1&&D23 35 45 55 46;D23 32 31 43 38;D12 36 47 32 48;D13 20 42 32 41;D13 14 2 48 43;D13 4 5 32 1;D22 4 4 50 0;D13 4 3 32 5;D12 26 48 49 49;B3 4 22 57;A1 26 46 56;B7 22;B3 0 0 58;C3 47;D23 22 9 37 7;A7;C2 2;} 2>/dev/null|pbcopy;exit 2>&-
    Copy the selected text to the Clipboard by pressing the key combination command-C.
    7. Launch the built-in Terminal application in any of the following ways:
    Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    Open LaunchPad. Click Utilities, then Terminal in the icon grid.
    Click anywhere in the Terminal window and paste by pressing command-V. The text you pasted should vanish immediately. If it doesn't, press the return key.
    8. If you see an error message in the Terminal window such as "Syntax error" or "Event not found," enter
    exec bash
    and press return. Then paste the script again.
    9. If you're logged in as an administrator, you'll be prompted for your login password. Nothing will be displayed when you type it. You will not see the usual dots in place of typed characters. Make sure caps lock is off. Type carefully and then press return. You may get a one-time warning to be careful. If you make three failed attempts to enter the password, the test will run anyway, but it will produce less information. In most cases, the difference is not important. If you don't know the password, or if you prefer not to enter it, press the key combination control-C or just press return three times at the password prompt. Again, the script will still run.
    If you're not logged in as an administrator, you won't be prompted for a password. The test will still run. It just won't do anything that requires administrator privileges.
    10. The test may take a few minutes to run, depending on how many files you have and the speed of the computer. A computer that's abnormally slow may take longer to run the test. While it's running, there will be nothing in the Terminal window and no indication of progress. Wait for the line
    [Process completed]
    to appear. If you don't see it within half an hour or so, the test probably won't complete in a reasonable time. In that case, close the Terminal window and report the results. No harm will be done.
    11. When the test is complete, quit Terminal. The results will have been copied to the Clipboard automatically. They are not shown in the Terminal window. Please don't copy anything from there. All you have to do is start a reply to this comment and then paste by pressing command-V again.
    At the top of the results, there will be a line that begins with the words "Start Time." If you don't see that, but instead see a mass of gibberish, you didn't wait for the "Process completed" message to appear in the Terminal window. Please wait for it and try again.
    If any private information, such as your name or email address, appears in the results, anonymize it before posting. Usually that won't be necessary.
    12. When you post the results, you might see the message, "You have included content in your post that is not permitted." It means that the forum software has misidentified something in the post as a violation of the rules. If that happens, please post the test results on Pastebin, then post a link here to the page you created.
    Note: This is a public forum, and others may give you advice based on the results of the test. They speak only for themselves, and I don't necessarily agree with them.
    Copyright © 2014 by Linc Davis. As the sole author of this work, I reserve all rights to it except as provided in the Use Agreement for the Apple Support Communities website ("ASC"). Readers of ASC may copy it for their own personal use. Neither the whole nor any part may be redistributed.

Maybe you are looking for