rc.geomyidae - geomyidae - A small C-based gopherd.
HTML git clone git://bitreich.org/geomyidae/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/geomyidae/
DIR Log
DIR Files
DIR Refs
DIR Tags
DIR README
DIR LICENSE
---
rc.geomyidae (621B)
---
1 #!/bin/sh
2
3 # Array of all PIDS
4 PID=$(pidof -o %PPID /usr/bin/geomyidae)
5
6 case "$1" in
7 start)
8 echo "Starting geomyidae"
9 /usr/bin/geomyidae $GEOMYIDAE_ARGS 2>&1
10 if [ $? -gt 0 ]; then
11 echo "Startup failed"
12 fi
13 ;;
14 stop)
15 echo "Stopping all geomyidae processes"
16 [ -n "$PID" ] && kill $PID >/dev/null
17 if [ $? -gt 0 ] && [ -n "$PID" ]; then
18 echo "Stopping failed for at least one process"
19 fi
20 ;;
21 restart)
22 $0 stop
23 $0 start
24 ;;
25 *)
26 echo "usage: $0 {start|stop|restart}"
27 esac
28 exit 0
29