RHBZ#505588: gpsd has a broken initscript that fails to launch daemon
This commit is contained in:
parent
9b90e5966e
commit
1a8a9e6d8e
@ -29,20 +29,20 @@
|
|||||||
# Source function library.
|
# Source function library.
|
||||||
. /etc/rc.d/init.d/functions
|
. /etc/rc.d/init.d/functions
|
||||||
|
|
||||||
exec="/usr/bin/gpsd"
|
exec="/usr/sbin/gpsd"
|
||||||
prog=$(basename $exec)
|
prog=$(basename $exec)
|
||||||
PIDFILE=/var/run/gpsd.pid
|
PIDFILE=/var/run/gpsd.pid
|
||||||
CONTROL_SOCKET=/var/run/gpsd.sock
|
CONTROL_SOCKET=/var/run/gpsd.sock
|
||||||
|
|
||||||
[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog
|
[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog
|
||||||
OPTIONS="-n"
|
: ${OPTIONS:=-n}
|
||||||
DEVICE="/dev/ttyUSB0"
|
: ${DEVICE:=/dev/ttyUSB0}
|
||||||
|
|
||||||
lockfile=/var/lock/subsys/$prog
|
lockfile=/var/lock/subsys/$prog
|
||||||
|
|
||||||
start() {
|
start() {
|
||||||
echo -n $"Starting $prog: "
|
echo -n $"Starting $prog: "
|
||||||
daemon $exec -p $PIDFILE -F $CONTROL_SOCKET $OPTIONS $DEVICE
|
daemon $exec -P $PIDFILE -F $CONTROL_SOCKET $OPTIONS $DEVICE
|
||||||
retval=$?
|
retval=$?
|
||||||
echo
|
echo
|
||||||
[ $retval -eq 0 ] && touch $lockfile
|
[ $retval -eq 0 ] && touch $lockfile
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
Name: gpsd
|
Name: gpsd
|
||||||
Version: 2.39
|
Version: 2.39
|
||||||
Release: 4%{?dist}
|
Release: 5%{?dist}
|
||||||
Summary: Service daemon for mediating access to a GPS
|
Summary: Service daemon for mediating access to a GPS
|
||||||
|
|
||||||
Group: System Environment/Daemons
|
Group: System Environment/Daemons
|
||||||
@ -229,6 +229,9 @@ fi
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Aug 12 2009 Marek Mahut <mmahut@fedoraproject.org> - 2.39-5
|
||||||
|
- RHBZ#505588: gpsd has a broken initscript that fails to launch daemon
|
||||||
|
|
||||||
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.39-4
|
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.39-4
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user