前に戻る。|次をみる。??

freebsd4.10 /usr/local/etc/rc.d/canna.sh

/usr/local/etc/rc.d/canna.sh いわゆるcanna.sh

Linux から lx:~# ls /mnt/local/etc/rc.d/canna.sh* の 位置で 見る事が 可能

#!/bin/sh
#
# $FreeBSD: ports/japanese/Canna/files/canna.sh.in,v 1.7 2004/02/16 06:37:22 max Exp $
#

# PROVIDE: canna
# REQUIRE: DAEMON
# BEFORE: LOGIN
# KEYWORD: FreeBSD shutdown

# Define these canna_* variables in one of these files:
#	/etc/rc.conf
#	/etc/rc.conf.local
#	/etc/rc.conf.d/canna
#
# DO NOT CHANGE THESE DEFAULT VALUES HERE
#
canna_enable=${canna_enable:-"NO"}		# Enable canna
#canna_program="/usr/local/sbin/cannaserver"	# Location of canna
canna_flags=${canna_flags:-"-u bin"}		# Flags to canna program
# Put the following into /etc/rc.conf if you want to use a TCP
# connection instead of a UNIX domain socket.
canna_flags="-u bin -inet"

. /usr/local/etc/rc.subr

name="canna"
rcvar=`set_rcvar`
command="/usr/local/sbin/cannaserver"
start_precmd="canna_prestart"
stop_cmd="canna_stop"

canna_prestart() {
	/bin/rm -f /tmp/.iroha_unix/IROHA
	/usr/bin/touch /var/log/CANNA0msgs
	/usr/sbin/chown bin:bin /var/log/CANNA0msgs
}

canna_stop() {
	/usr/local/sbin/cannakill && echo "Stopping ${name}."
}

load_rc_config $name
run_rc_command "$1"

/usr/local/etc/rc.d/canna.sh です。

canna_flags="-u bin -inet" の 前についてた # を 削除 したのみ

再掲 ユーザー 領域 の マウント Linux 側で hdb1 として 見えてる 中の hdb9 の 領域 を マウント 抜粋です。

lx:~# fdisk -l
Disk /dev/hdb: 255 heads, 63 sectors, 524 cylinders
Units = cylinders of 16065 * 512 bytes

   Device Boot    Start       End    Blocks   Id  System
/dev/hdb1   *         1       524   4208998+  a5  BSD/386
lx:~# cat /proc/partitions | grep hdb
   3    64    4209408 hdb
   3    65    4208998 hdb1
   3    69     131072 hdb5
   3    70     311920 hdb6
   3    71     262144 hdb7
   3    72     262144 hdb8
   3    73    3241718 hdb9
lx:~# mount -t ufs -ro ufstype=44bsd /dev/hdb9 /mnt/
lx:~# ls /mnt/
@LongLink  bin/     games/  include/  libdata/  local/  ports/  share/
X11R6/     compat/  home/   lib/      libexec/  obj/    sbin/   src/
lx:~# df
Filesystem           1k-blocks      Used Available Use% Mounted on
/dev/hdb9              3191012   1280284   1655448  44% /mnt
lx:~# mount
/dev/hdb9 on /mnt type ufs (ro,ufstype=44bsd)
lx:~# umount /mnt/

前に戻る。|次をみる。??


freebsd4.10 に ついて に戻る

Copyright © 2004.-2007. nyantarou All Rights Reserved.