diff options
author | delphij <delphij@FreeBSD.org> | 2011-02-27 15:01:17 +0800 |
---|---|---|
committer | delphij <delphij@FreeBSD.org> | 2011-02-27 15:01:17 +0800 |
commit | d78a69d235515463987a3d17e849f901c46d60b4 (patch) | |
tree | 121851bbf0763e56e505184ab62bc942e8bfda1f /net | |
parent | b4ad659f87a1aa487a5fe83b4391c4e386eb2b07 (diff) | |
download | freebsd-ports-gnome-d78a69d235515463987a3d17e849f901c46d60b4.tar.gz freebsd-ports-gnome-d78a69d235515463987a3d17e849f901c46d60b4.tar.zst freebsd-ports-gnome-d78a69d235515463987a3d17e849f901c46d60b4.zip |
Fix several problems with the rc.d script based on dougb@'s comments:
- Set a default value (NO) for _enable;
- Use REQUIRE: LOGIN since this is not required to start that early;
- Make the style more like the standard script.
Submitted by: dougb
Diffstat (limited to 'net')
-rw-r--r-- | net/iet/Makefile | 1 | ||||
-rw-r--r-- | net/iet/files/ietd.in | 18 |
2 files changed, 13 insertions, 6 deletions
diff --git a/net/iet/Makefile b/net/iet/Makefile index 2ab6df23b1e1..c5db8bf5ca37 100644 --- a/net/iet/Makefile +++ b/net/iet/Makefile @@ -7,6 +7,7 @@ PORTNAME= iet PORTVERSION= 1.4.20.2 +PORTREVISION= 1 CATEGORIES= net MASTER_SITES= SF/iscsitarget/iscsitarget/${PORTVERSION}/ DISTNAME= iscsitarget-${PORTVERSION} diff --git a/net/iet/files/ietd.in b/net/iet/files/ietd.in index adee42dd5277..916bcc963295 100644 --- a/net/iet/files/ietd.in +++ b/net/iet/files/ietd.in @@ -1,21 +1,27 @@ #!/bin/sh -# PROVIDE: ietd -# REQUIRE: NETWORKING SERVERS DAEMON ldconfig resolv -# BEFORE: LOGIN +# $FreeBSD$ +# +# PROVIDE: ietd +# REQUIRE: LOGIN # KEYWORD: shutdown . /etc/rc.subr + name="ietd" +rcvar=`set_rcvar` + command=%%PREFIX%%/sbin/${name} -stop_precmd="ietd_prestop" required_modules="iet" -rcvar=`set_rcvar` +stop_precmd="ietd_prestop" + +load_rc_config $name + +: ${ietd_enable:="NO"} ietd_prestop() { %%PREFIX%%/sbin/ietadm --op delete } -load_rc_config $name run_rc_command "$1" |