summarylogtreecommitdiffstats
path: root/cachefilesd
diff options
context:
space:
mode:
authorMantas Mikulėnas2015-08-08 18:28:14 +0300
committerMantas Mikulėnas2015-08-08 18:28:24 +0300
commit4f00aae38f12c8018870b48bfa33be9e63e85c86 (patch)
treeb1ccaffcb06ca046295aba4b5f0a08e62a521087 /cachefilesd
parente2ce7e8f1ec4a6f54e3cd984079995459a5664ce (diff)
downloadaur-4f00aae38f12c8018870b48bfa33be9e63e85c86.tar.gz
update for 2015
Diffstat (limited to 'cachefilesd')
-rwxr-xr-xcachefilesd49
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