diff options
author | jylefort <jylefort@FreeBSD.org> | 2005-06-10 10:13:44 +0800 |
---|---|---|
committer | jylefort <jylefort@FreeBSD.org> | 2005-06-10 10:13:44 +0800 |
commit | 6047f163dfb29cd22c2c4d6adcb271a58aacaf77 (patch) | |
tree | a2d668178ae37d7d6367cf23bfc190a301aa5c4f /x11/gdm | |
parent | 273b5d94a28c1c566adccd24b76281cd322e999f (diff) | |
download | freebsd-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/gdm')
-rw-r--r-- | x11/gdm/Makefile | 2 | ||||
-rw-r--r-- | x11/gdm/files/gdm.sh.in | 13 |
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" |