Swap Folder Cleanup

Discussion in 'Feedback/Feature Requests' started by Tony, Jun 4, 2010.

  1. mistwang

    mistwang LiteSpeed Staff

    How about run the command with "-delete" from command line as nobody user? LSWS change UID to nobody or the user that lshttpd run as before execute the shell script. I wonder if it is a permission problem.
  2. ffeingol

    ffeingol New Member

    The files are all owned by nobody (which is what I would expect). I'm going to leave it run tonight with the -x in place and the stdout log turned on. If it was a permissions issue I'd expect those messages to show up in the stdout log?
  3. ffeingol

    ffeingol New Member

    Any suggestions on how to do this from command line?
  4. mistwang

    mistwang LiteSpeed Staff

    sudo -u nobody <path_to_cleancache.sh> <path_to_cache_dir>
  5. ffeingol

    ffeingol New Member

    You get an error from ionice (ioprio_set: Operation not permitted).
  6. mistwang

    mistwang LiteSpeed Staff

    I see, looks like need to set I/O priority in server code before giving up super user privilege, then call the script without ionice.
  7. ffeingol

    ffeingol New Member

    It looks like the cleancache.sh script has been totally removed from the latest builds of LSWS? We're still having issues with lots of files building up in the cache dir. This is especially a problem on VPS's where the tmp folder is pretty small (relative to a physical server).

Share This Page