Changeset 27d5cd1 for debian/gutenbach-remctl.init
- Timestamp:
- Aug 14, 2010, 6:26:35 PM (14 years ago)
- Branches:
- debian
- Children:
- 5aace3f
- Parents:
- c95ca32
- git-author:
- Kyle Brogle <broglek@…> (08/14/10 18:26:35)
- git-committer:
- Kyle Brogle <broglek@…> (08/14/10 18:26:35)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
debian/gutenbach-remctl.init
r632040d r27d5cd1 12 12 case "$1" in 13 13 start) 14 if [ -e /var/run/gutenbach/remctld.pid ]; then 15 pid=$(cat /var/run/gutenbach/remctld.pid) 16 if [ -n "$pid" ]; then 17 kill -0 "$pid" 18 if [ "$?" == 0 ]; then 19 echo "Ending remctld..." >&2 20 kill "$pid" || true 21 fi 22 fi 23 fi 14 24 15 25 16 pid=$(sudo lsof -i :4373 | grep remctld | sed s/remctld\ // | sed s/\ .*//) … … 37 28 38 29 stop) 39 if [ -e /var/run/gutenbach/remctld.pid ]; then 40 pid=$(cat /var/run/gutenbach/remctld.pid) 41 if [ -n "$pid" ]; then 42 kill -0 "$pid" 43 if [ "$?" == 0 ]; then 44 echo "Ending remctld..." >&2 45 kill "$pid" || true 46 fi 47 fi 48 fi 30 49 31 50 32 pid=$(sudo lsof -i :4373 | grep remctld | sed s/remctld\ // | sed s/\ .*//) … … 59 41 60 42 restart) 61 if [ -e /var/run/gutenbach/remctld.pid ]; then62 pid=$(cat /var/run/gutenbach/remctld.pid)63 if [ -n "$pid" ]; then64 kill -0 "$pid"65 if [ "$?" == 0 ]; then66 echo "Ending remctld..." >&267 kill "$pid" || true68 fi69 fi70 fi71 43 72 44 pid=$(sudo lsof -i :4373 | grep remctld | sed s/remctld\ // | sed s/\ .*//)
Note: See TracChangeset
for help on using the changeset viewer.