diff options
Diffstat (limited to 'cachefilesd')
-rwxr-xr-x | cachefilesd | 49 |
1 files changed, 0 insertions, 49 deletions
diff --git a/cachefilesd b/cachefilesd deleted file mode 100755 index 4624369c9e51..000000000000 --- a/cachefilesd +++ /dev/null @@ -1,49 +0,0 @@ -#!/bin/bash - -. /etc/rc.conf -. /etc/rc.d/functions - -pidfile="/run/cachefilesd.pid" - -get_pid() { - if [ -r "${pid_file}" ]; then - cat "${pid_file}" - else - pgrep -f /sbin/cachefilesd - fi -} - -PID=$(get_pid) - -case "$1" in - start) - stat_busy "Starting cachefilesd" - modprobe cachefiles 2>/dev/null - [[ -z "$PID" ]] && /sbin/cachefilesd -p "$pidfile" - if (( $? > 0 )); then - stat_fail - else - add_daemon cachefilesd - stat_done - fi - ;; - stop) - stat_busy "Stopping cachefilesd" - [[ ! -z "$PID" ]] && kill $PID &> /dev/null - if (( $? > 0 )); then - stat_fail - else - rm -f "$pidfile" - rm_daemon cachefilesd - stat_done - fi - ;; - restart) - $0 stop - sleep 0.5 - $0 start - ;; - *) - echo "usage: $0 {start|stop|restart}" -esac -exit 0 |