Jump to content

pcjacobse

Members
  • Posts

    13
  • Joined

  • Last visited

Posts posted by pcjacobse

  1. Only one.

     

    Apparently your version of slackware is using a different version of the "bash" shell (or you are using a different shell entirely) and the

    disown %%

    command is not recognized.  This would exhibit exactly the symptoms you described.

     

    So, if not using "bash", use it.  If using a different version of the "bash" shell, change to one with a working "disown" command.

    If your environment does not have the

    $SHELL

    variable set, set it to /bin/bash before invoking the script.

    If your version of "bash" is not in /bin/bash, make a link for it there, or modify the first few lines in the script to where it lives on your system.

     

    Joe L.

    Thanks for the suggestion!

     

    I edited the cache_dirs files and added:

    SHELL=/bin/bash
    as 2nd line. Now it seems to work correctly.

    My ssh shell was /bin/bash, however the boot script (and the simpleFeatures invoker) used /bin/sh as shell.

  2. I have a strange problem using this script (the latest version 1.6.6). I run unraid 5.0-rc8a on a full slackware 14 distro.

     

    in my /boot/config/go i have:

    /usr/bin/cache_dirs -d 5 -m 3 -M 5 -w

     

    After the boot the cache_dirs script takes up 99% cpu in the foreground. Preventing my other bootscripts to run.

    When I login on ssh and try to stop it using cache_dirs -q, i get the message that its not running. And indeed there is no lock file at /var/lock/cache_dirs.LCK, but the process is running.

     

    I can kill the script. And than my boot scripts continue (starting sickbeard etc.)

     

    When i run it in the foreground i get the following output:

    # /usr/bin/cache_dirs -d 5 -m 3 -M 5 -w -F

    Executed find in 0.076995 seconds, weighted avg=0.076995 seconds, now sleeping 4 seconds

    rm: cannot remove '/var/lock/cache_dirs.LCK': No such file or directory

    /usr/bin/cache_dirs: line 1: kill: (6493) - No such process

    rm: cannot remove '/var/lock/cache_dirs.LCK': No such file or directory

     

    I guess this happens because i rebooted, so there is still a line 'kernel: mdcmd (11): stop' in the syslog

     

    The script does work when I use `/usr/bin/cache_dirs -d 5 -m 3 -M 5 -w -F -B`.

     

    Any suggestions on how to fix this?

×
×
  • Create New...