aboutsummaryrefslogtreecommitdiffstats
path: root/x11
diff options
context:
space:
mode:
authorjylefort <jylefort@FreeBSD.org>2005-06-10 10:13:44 +0800
committerjylefort <jylefort@FreeBSD.org>2005-06-10 10:13:44 +0800
commit6047f163dfb29cd22c2c4d6adcb271a58aacaf77 (patch)
treea2d668178ae37d7d6367cf23bfc190a301aa5c4f /x11
parent273b5d94a28c1c566adccd24b76281cd322e999f (diff)
downloadfreebsd-ports-gnome-6047f163dfb29cd22c2c4d6adcb271a58aacaf77.tar.gz
freebsd-ports-gnome-6047f163dfb29cd22c2c4d6adcb271a58aacaf77.tar.zst
freebsd-ports-gnome-6047f163dfb29cd22c2c4d6adcb271a58aacaf77.zip
Improve the startup script:
- Remove useless start_cmd/stop_cmd - Set procname (unbreaks status)
Diffstat (limited to 'x11')
-rw-r--r--x11/gdm/Makefile2
-rw-r--r--x11/gdm/files/gdm.sh.in13
2 files changed, 2 insertions, 13 deletions
diff --git a/x11/gdm/Makefile b/x11/gdm/Makefile
index 27e6e8de6016..59baec73029f 100644
--- a/x11/gdm/Makefile
+++ b/x11/gdm/Makefile
@@ -7,7 +7,7 @@
PORTNAME= gdm
PORTVERSION= 2.6.0.9
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= x11 gnome
MASTER_SITES= ${MASTER_SITE_GNOME}
MASTER_SITE_SUBDIR= sources/${PORTNAME:S/2$//}/2.6
diff --git a/x11/gdm/files/gdm.sh.in b/x11/gdm/files/gdm.sh.in
index 2fd88f7187ca..b3a1a3b00631 100644
--- a/x11/gdm/files/gdm.sh.in
+++ b/x11/gdm/files/gdm.sh.in
@@ -11,20 +11,9 @@ gdm_enable=${gdm_enable-"NO"}
name=gdm
rcvar=`set_rcvar`
-start_cmd=gdm_start
-stop_cmd=gdm_stop
command="%%PREFIX%%/bin/${name}"
pidfile="/var/run/${name}.pid"
-
-gdm_start() {
- checkyesno gdm_enable && echo -n " Starting GDM" && \
- ${command}
-}
-
-gdm_stop() {
- checkyesno gdm_enable && echo -n " Stopping GDM" && \
- /usr/bin/killall -m ${name} 2>/dev/null
-}
+procname="%%PREFIX%%/bin/gdm-binary"
load_rc_config ${name}
run_rc_command "$1"