summaryrefslogtreecommitdiff
path: root/packaging
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2010-03-27 07:23:40 -0400
committerEric S. Raymond <esr@thyrsus.com>2010-03-27 07:23:40 -0400
commit9822abf3954569a3d1c165256d3b9ae336e84c9a (patch)
tree4010a05c154ca1650e01f34a710ec65ae8dff951 /packaging
parent67669e185f5be314ce31ec7bfae3950fa6a663b6 (diff)
downloadgpsd-9822abf3954569a3d1c165256d3b9ae336e84c9a.tar.gz
More LSB compliance.
Diffstat (limited to 'packaging')
-rw-r--r--packaging/etc_init.d_gpsd_rpm2
1 files changed, 2 insertions, 0 deletions
diff --git a/packaging/etc_init.d_gpsd_rpm b/packaging/etc_init.d_gpsd_rpm
index 9e912479..46cbe8a4 100644
--- a/packaging/etc_init.d_gpsd_rpm
+++ b/packaging/etc_init.d_gpsd_rpm
@@ -28,6 +28,7 @@ RETVAL=0
start() {
# Check if it is already running
+ [ "$EUID" != "0" ] && exit 4
if [ ! -f /var/lock/subsys/$PROGNAME ]; then
echo -n "Starting $DAEMON daemon: "
daemon /usr/sbin/$PROGNAME $OPTIONS $TTY
@@ -39,6 +40,7 @@ start() {
}
stop() {
+ [ "$EUID" != "0" ] && exit 4
echo -n "Stopping $DAEMON daemon: "
killproc /usr/sbin/$PROGNAME
RETVAL=$?