Stop removing Init- Scripts from packages!

Problems with packages? Post here, using [tags] of the package name.

Re: Stop removing Init- Scripts from packages!

Postby moonman » Thu Feb 21, 2013 11:06 pm

Those are available in AUR: https://aur.archlinux.org/packages/deluge-git/

deluged:
$this->bbcode_second_pass_code('', '#!/bin/bash

. /etc/rc.conf
. /etc/rc.d/functions
. /etc/conf.d/deluged

PIDFILE=/run/deluge/deluged.pid
OPTIONS="-P $PIDFILE $OPTIONS"

[[ -f $PIDFILE ]] && PID=$(<$PIDFILE)
[[ -z $PID ]] || kill -0 $PID &>/dev/null || PID=

case "$1" in
start)
stat_busy "Starting Deluge Daemon"
[[ -z $PID ]] && su -l -s /bin/sh -c "/usr/bin/deluged $OPTIONS >/dev/null" $DELUGE_USER
if [ $? -gt 0 ]; then
stat_fail
else
add_daemon deluged
stat_done
fi
;;
stop)
stat_busy "Stopping Deluge Daemon"
[[ ! -z $PID ]] && kill $PID &> /dev/null
if [ $? -gt 0 ]; then
stat_fail
else
rm -f $PIDFILE
rm_daemon deluged
stat_done
fi
;;
restart)
$0 stop
sleep 1
$0 start
;;
*)
echo "usage: $0 {start|stop|restart}"
esac
exit 0
')

deluge-web:
$this->bbcode_second_pass_code('', '#!/bin/bash

. /etc/rc.conf
. /etc/rc.d/functions
. /etc/conf.d/deluged

PIDFILE=/run/deluge/deluge-web.pid
WEB_OPTIONS="-f $WEB_OPTIONS"

[[ -f $PIDFILE ]] && PID=$(<$PIDFILE)
[[ -z $PID ]] || kill -0 $PID || PID=

case "$1" in
start)
stat_busy "Starting Deluge WebUI"
[[ -z $PID ]] && su -l -s /bin/sh -c "/usr/bin/deluge-web $WEB_OPTIONS >/dev/null" deluge
if [ $? -gt 0 ]; then
stat_fail
else
sleep 1
echo $(pgrep -u deluge deluge-web) > $PIDFILE
add_daemon deluge-web
stat_done
fi
;;
stop)
stat_busy "Stopping Deluge WebUI"
[[ ! -z $PID ]] && kill $PID &> /dev/null
if [ $? -gt 0 ]; then
stat_fail
else
rm $PIDFILE
rm_daemon deluge-web
stat_done
fi
;;
restart)
$0 stop
sleep 1
$0 start
;;
*)
echo "usage: $0 {start|stop|restart}"
esac
exit 0
')
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3388
Joined: Sat Jan 15, 2011 3:36 am

Re: Stop removing Init- Scripts from packages!

Postby sethjvm » Mon Feb 25, 2013 8:08 am

$this->bbcode_second_pass_quote('dinjo', '4'). The only thing which is holding me up to move to debian is lack of newer packages or is there a alternatives ?

And i know there a rootfs for debian sometime back but after the new kernel flash (back porting) it also stopped working


I suspect that you could build your own updated packages in debian if the Wheezy version are not satisfactory. The doozan guys seem to be quite nice and helpful so they can probably answer specific questions about software that you might have.
Pogo Plug Pro with ALARM SATA rootfs
success: wireless, samba, sabnzbd, sickbeard, transmission, lamp with Gallery3 and newznab+, rsync server, tor
still trying: avahi, minidlna
up next: asterisk, openvpn, proxy server of some sort
gave up: nfs and lvm
sethjvm
 
Posts: 53
Joined: Wed Oct 19, 2011 7:36 am

Previous

Return to Packages

Who is online

Users browsing this forum: No registered users and 4 guests