[arch-commits] Commit in bitlbee/trunk (PKGBUILD rc.d)

Dave Reisner dreisner at nymeria.archlinux.org
Sat Feb 23 23:49:38 UTC 2013


    Date: Sunday, February 24, 2013 @ 00:49:37
  Author: dreisner
Revision: 178468

remove rc.d script

Modified:
  bitlbee/trunk/PKGBUILD
Deleted:
  bitlbee/trunk/rc.d

----------+
 PKGBUILD |    2 --
 rc.d     |   49 -------------------------------------------------
 2 files changed, 51 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2013-02-23 12:05:58 UTC (rev 178467)
+++ PKGBUILD	2013-02-23 23:49:37 UTC (rev 178468)
@@ -21,7 +21,6 @@
             'xinetd: to run bitlbee through xinetd')
 source=("http://get.bitlbee.org/src/${pkgname}-${pkgver}.tar.gz"
         'xinetd'
-        'rc.d'
         'bitlbee.tmpfiles')
 sha1sums=('21e17f082c776566429603b1e8c966983a75ac9e'
           '5e0af27ba9cc4fe455e3381c75fc49a9326e2f17'
@@ -58,6 +57,5 @@
 
   install -o65 -g65 -dm770 "$pkgdir/var/lib/bitlbee"
   install -Dm644 "$srcdir/xinetd" "$pkgdir/etc/xinetd.d/bitlbee"
-  install -Dm755 "$srcdir/rc.d" "$pkgdir/etc/rc.d/bitlbee"
   install -Dm644 "$srcdir/bitlbee.tmpfiles" "$pkgdir/usr/lib/tmpfiles.d/bitlbee.conf"
 }

Deleted: rc.d
===================================================================
--- rc.d	2013-02-23 12:05:58 UTC (rev 178467)
+++ rc.d	2013-02-23 23:49:37 UTC (rev 178468)
@@ -1,49 +0,0 @@
-#!/bin/bash
-
-. /etc/rc.conf
-. /etc/rc.d/functions
-
-pidfile=/run/bitlbee/bitlbee.pid
-if [[ -r $pidfile ]]; then
-  read -r PID < "$pidfile"
-  if [[ ! -d /proc/$PID ]]; then
-    # stale pidfile
-    unset PID
-    rm -f "$pidfile"
-  fi
-fi
-
-case $1 in
-  start)
-    stat_busy "Starting bitlbee daemon"
-    if [[ $PID ]] || ! su -s /bin/sh -c '/usr/sbin/bitlbee -F' bitlbee; then
-      stat_fail
-      exit 1
-    else
-      add_daemon bitlbee
-      stat_done
-    fi
-    ;;
-  stop)
-    stat_busy "Stopping bitlbee daemon"
-    if [[ -z $PID ]] || ! kill $PID &>/dev/null; then
-      stat_fail
-      exit 1
-    else
-      rm -f "$pidfile"
-      rm_daemon bitlbee
-      stat_done
-    fi
-    ;;
-  restart)
-    $0 stop
-    sleep 3
-    $0 start
-    ;;
-  *)
-    echo "usage: $0 {start|stop|restart}"
-    exit 1
-    ;;
-esac
-
-# vim: set ft=sh et ts=2 sw=2:




More information about the arch-commits mailing list