diff options
author | pjd <pjd@FreeBSD.org> | 2004-02-02 19:05:06 +0000 |
---|---|---|
committer | pjd <pjd@FreeBSD.org> | 2004-02-02 19:05:06 +0000 |
commit | b9b026e5be8e8bb0625809735d3a9b37dda0fcc3 (patch) | |
tree | 89ec64443b4711f536285e8015dc1a27ff0f68c2 /etc/rc.d/dumpon | |
parent | bc4eae093630ca14e9231c249c2f41ae714b6edb (diff) | |
download | FreeBSD-src-b9b026e5be8e8bb0625809735d3a9b37dda0fcc3.zip FreeBSD-src-b9b026e5be8e8bb0625809735d3a9b37dda0fcc3.tar.gz |
Teach /etc/rc.d/dumpon script how to stop.
Reviewed by: gordon
Approved by: gordon, scottl (mentor)
Diffstat (limited to 'etc/rc.d/dumpon')
-rw-r--r-- | etc/rc.d/dumpon | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/etc/rc.d/dumpon b/etc/rc.d/dumpon index c65f63e..f0ab437 100644 --- a/etc/rc.d/dumpon +++ b/etc/rc.d/dumpon @@ -12,7 +12,7 @@ name="dumpon" start_cmd="dumpon_start" -stop_cmd=":" +stop_cmd="dumpon_stop" dumpon_start() { @@ -28,5 +28,16 @@ dumpon_start() esac } +dumpon_stop() +{ + case ${dumpdev} in + [Nn][Oo] | '') + ;; + *) + /sbin/dumpon -v off + ;; + esac +} + load_rc_config $name run_rc_command "$1" |