dcc-client init fails to create pid file
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
dcc (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: dcc-client
I used screen's SCREENDIR method with DCCDIR and updated the start and restart functions.
/etc/init.
#!/bin/sh
#
# dcc-client example file to build /etc/init.d/ scripts.
# This file should be used to construct scripts for /etc/init.d.
PATH=/sbin:
DAEMON=
NAME=dccifd
DESC="DCC program interface daemon"
DCCDIR=/var/run/dcc
test -f $DAEMON || exit 0
set -e
case "$1" in
start)
if [ ! -d $DCCDIR ]; then
fi
echo -n "Starting $DESC: $NAME"
echo "."
;;
stop)
echo -n "Stopping $DESC: $NAME"
echo "."
;;
restart)
echo -n "Restarting $DESC: $NAME"
sleep 1
echo "."
echo "\n"
;;
*)
# echo "Usage: $N {start|
echo "Usage: $N {start|
exit 1
;;
esac
exit 0
Thanks for the bug report. I'm closing it because the bug has been fixed in Feisty.
dcc (1.3.42-2) unstable; urgency=low
* dcc-client is gone, and merged into dcc-server. The space gained by the
split was very small, and resulted in an overcomplicated packaging.
* in that release, init scripts have been reworked a *lot* and now use
upstreams scripts correctly. You may have needed to handcraft it
previously, it's no more needed.
New /etc/init. d/dcc-server contains: /var/run/ dcc
DCC_RUNDIR=
if [ ! -d $DCC_RUNDIR ]; then
mkdir -p $DCC_RUNDIR
chown dcc:dcc $DCC_RUNDIR
fi