aboutsummaryrefslogtreecommitdiffstats
path: root/lang
diff options
context:
space:
mode:
Diffstat (limited to 'lang')
-rw-r--r--lang/gnustep-base/files/GNUstep.sh15
1 files changed, 8 insertions, 7 deletions
diff --git a/lang/gnustep-base/files/GNUstep.sh b/lang/gnustep-base/files/GNUstep.sh
index b76c3eac6432..b5672dec2f4e 100644
--- a/lang/gnustep-base/files/GNUstep.sh
+++ b/lang/gnustep-base/files/GNUstep.sh
@@ -2,22 +2,23 @@
PREFIX=%%PREFIX%%
IFFILE=${PREFIX}/etc/gdomap_if
-PIDFILE=/var/run/gdomap.pid
-GNUSTEP_SYSTEM_ROOT=${PREFIX}/GNUstep/System
+PIDFILE="/var/run/gdomap.pid"
+GNUSTEP_SYSTEM_ROOT="${PREFIX}/GNUstep/System"
case "$1" in
start)
if [ -e ${GNUSTEP_SYSTEM_ROOT}/Makefiles/GNUstep.sh ]; then
. ${GNUSTEP_SYSTEM_ROOT}/Makefiles/GNUstep.sh
- if [ -x ${GNUSTEP_SYSTEM_ROOT}/Tools/${GNUSTEP_HOST_CPU}/${GNUSTEP_HOST_OS}/gdomap ]; then
- rm -f ${PIDFILE}
- ${GNUSTEP_SYSTEM_ROOT}/Tools/${GNUSTEP_HOST_CPU}/${GNUSTEP_HOST_OS}/gdomap -a ${IFFILE} -I ${PIDFILE}
- echo -n ' GNUstep'
- fi
+ rm -f ${PIDFILE}
+ opentool gdomap -a ${IFFILE} -I ${PIDFILE}
+ opentool gdnc
+ echo -n ' GNUstep'
fi
;;
stop)
[ -r ${PIDFILE} ] && kill $(cat ${PIDFILE}) && echo -n ' GNUstep'
+ killall gdnc
+ rm -f ${PIDFILE}
;;
*)
echo "Usage: `basename $0` {start|stop}" >&2