diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2010-03-27 07:23:40 -0400 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2010-03-27 07:23:40 -0400 |
commit | 9822abf3954569a3d1c165256d3b9ae336e84c9a (patch) | |
tree | 4010a05c154ca1650e01f34a710ec65ae8dff951 /packaging | |
parent | 67669e185f5be314ce31ec7bfae3950fa6a663b6 (diff) | |
download | gpsd-9822abf3954569a3d1c165256d3b9ae336e84c9a.tar.gz |
More LSB compliance.
Diffstat (limited to 'packaging')
-rw-r--r-- | packaging/etc_init.d_gpsd_rpm | 2 |
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=$? |