Changeset View
Changeset View
Standalone View
Standalone View
head/etc/rc.d/dumpon
#!/bin/sh | #!/bin/sh | ||||
# | # | ||||
# $FreeBSD$ | # $FreeBSD$ | ||||
# | # | ||||
# PROVIDE: dumpon | # PROVIDE: dumpon | ||||
# REQUIRE: zvol | # REQUIRE: zvol | ||||
# BEFORE: disks | # BEFORE: disks | ||||
# KEYWORD: nojail | # KEYWORD: nojail | ||||
. /etc/rc.subr | . /etc/rc.subr | ||||
name="dumpon" | name="dumpon" | ||||
desc="Dump kernel corefiles from swap to disk" | |||||
start_cmd="dumpon_start" | start_cmd="dumpon_start" | ||||
stop_cmd="dumpon_stop" | stop_cmd="dumpon_stop" | ||||
dumpon_try() | dumpon_try() | ||||
{ | { | ||||
if /sbin/dumpon "${1}" ; then | if /sbin/dumpon "${1}" ; then | ||||
# Make a symlink in devfs for savecore | # Make a symlink in devfs for savecore | ||||
ln -fs "${1}" /dev/dumpdev | ln -fs "${1}" /dev/dumpdev | ||||
▲ Show 20 Lines • Show All 48 Lines • Show Last 20 Lines |