|
Компьютерный форум OSzone.net » Linux и FreeBSD » Общий по FreeBSD » FreeBSD - Samba3 и CUPS |
|
FreeBSD - Samba3 и CUPS
|
Новый участник Сообщения: 10 |
Профиль | Сайт | Отправить PM | Цитировать не могу найти файлы что
/usr/local/etc/rc.d/cups.sh.sample /usr/local/etc/rc.d/samba.sh.sample хотя через веб интерфейс http://192.168.0.1:901/ Самбу могу запустить cups http://192.168.0.1:631 нет но вопрос вот в том что не могу найти эти файли что бы переименовать /usr/local/etc/rc.d/samba.sh /usr/local/etc/rc.d/cups.sh и запустить хотя вроде нормально установил из портов cd /usr/ports/net/samba3 && make install clean cd /usr/ports/print/cups && make install clean |
|
Отправлено: 15:17, 08-12-2008 |
Новый участник Сообщения: 13
|
Профиль | Отправить PM | Цитировать ls -la /usr/local/etc/rc.d/
что либо находит ? раньше стояла другая версия ? cat samba #!/bin/sh # # $FreeBSD: ports/net/samba3/files/samba.in,v 1.6 2007/06/05 10:55:06 tdb Exp $ # # PROVIDE: nmbd smbd # REQUIRE: NETWORKING SERVERS DAEMON ldconfig resolv # BEFORE: LOGIN # KEYWORD: shutdown # # Add the following lines to /etc/rc.conf.local or /etc/rc.conf # to enable this service: # #samba_enable="YES" # or, for fine grain control: #nmbd_enable="YES" #smbd_enable="YES" # # Configuration file can be set with: #samba_config="/usr/local/etc/smb.conf" # . /etc/rc.subr name="samba" rcvar=$(set_rcvar) load_rc_config "${name}" # Custom commands extra_commands="reload status" start_precmd="samba_start_precmd" start_cmd="samba_cmd" stop_cmd="samba_cmd" status_cmd="samba_cmd" restart_precmd="samba_checkconfig" reload_precmd="samba_checkconfig" reload_cmd="samba_reload_cmd" rcvar_cmd="samba_rcvar_cmd" # Defaults samba_enable="${samba_enable:=NO}" samba_config_default="/usr/local/etc/smb.conf" samba_config="${samba_config=${samba_config_default}}" command_args="${samba_config:+-s "${samba_config}"}" #" samba_daemons="nmbd smbd" testparm_command="/usr/local/bin/testparm" smbcontrol_command="/usr/local/bin/smbcontrol" # Fetch parameters from configuration file samba_parm="${testparm_command} -s -v --parameter-name" samba_lockdir=$(${samba_parm} 'lock directory' ${samba_config:+"${samba_config}"} 2>/dev/null) # Setup dependent variables if [ -n "${rcvar}" ] && checkyesno "${rcvar}"; then nmbd_enable="${nmbd_enable=YES}" smbd_enable="${smbd_enable=YES}" fi # Hack to work around name change of pid file with non-default config pid_extra= if [ -n "${samba_config}" -a "${samba_config}" != "${samba_config_default}" ]; then pid_extra="-$(basename "${samba_config}")" fi # Hack to enable check of dependent variables eval real_${rcvar}="\${${rcvar}:=NO}" ${rcvar}="YES" # Defaults for dependent variables nmbd_enable="${nmbd_enable:=NO}" nmbd_flags="${nmbd_flags=\"-D\"}" smbd_enable="${smbd_enable:=NO}" smbd_flags="${smbd_flags=\"-D\"}" # Requirements required_files="${samba_config}" required_dirs="${samba_lockdir}" samba_checkconfig() { echo -n "Performing sanity check on Samba configuration: " if "${testparm_command}" -s ${samba_config:+"${samba_config}"} >/dev/null 2>&1; then echo "OK" else echo "FAILED" return 1 fi } samba_start_precmd() { # XXX: Never delete winbindd_idmap, winbindd_cache and group_mapping if [ -n "${samba_lockdir}" -a -d "${samba_lockdir}" ]; then echo -n "Removing stale Samba tdb files: " for file in brlock.tdb browse.dat connections.tdb gencache.tdb \ locking.tdb messages.tdb namelist.debug sessionid.tdb \ unexpected.tdb do rm "${samba_lockdir}/${file}" </dev/null 2>/dev/null && echo -n '.' done echo " done" fi } samba_rcvar_cmd() { # Prevent recursive calling unset "${rc_arg}_cmd" "${rc_arg}_precmd" "${rc_arg}_postcmd" # Check master variable echo "# ${name}" if [ -n "${rcvar}" ]; then # Use original configured value if checkyesno "real_${rcvar}"; then echo "\$${rcvar}=YES" else echo "\$${rcvar}=NO" fi fi # Check dependent variables samba_cmd "${_rc_prefix}${rc_arg}" ${rc_extra_args} } samba_reload_cmd() { local name rcvar command pidfile # Prevent recursive calling unset "${rc_arg}_cmd" "${rc_arg}_precmd" "${rc_arg}_postcmd" # Apply to all the daemons for name in ${samba_daemons}; do rcvar=$(set_rcvar) command="/usr/local/sbin/${name}" pidfile="/var/run/${name}${pid_extra}.pid" # Daemon should be enabled and running if [ -n "${rcvar}" ] && checkyesno "${rcvar}"; then if [ -n "$(check_pidfile "${pidfile}" "${command}")" ]; then debug "reloading ${name} configuration" echo "Reloading ${name}." # XXX: Hack with pid_extra "${smbcontrol_command}" "${name}${pid_extra}" 'reload-config' ${command_args} >/dev/null 2>&1 fi fi done } samba_cmd() { local name rcvar command pidfile samba_daemons # Prevent recursive calling unset "${rc_arg}_cmd" "${rc_arg}_precmd" "${rc_arg}_postcmd" # Stop processes in the reverse to order if [ "${rc_arg}" = "stop" ] ; then samba_daemons=$(reverse_list ${samba_daemons}) fi # Apply to all the daemons for name in ${samba_daemons}; do rcvar=$(set_rcvar) command="/usr/local/sbin/${name}" pidfile="/var/run/${name}${pid_extra}.pid" run_rc_command "${_rc_prefix}${rc_arg}" ${rc_extra_args} done } run_rc_command "$1" |
------- Отправлено: 15:51, 08-12-2008 | #2 |
Для отключения данного рекламного блока вам необходимо зарегистрироваться или войти с учетной записью социальной сети. Если же вы забыли свой пароль на форуме, то воспользуйтесь данной ссылкой для восстановления пароля. |
Новый участник Сообщения: 10
|
Профиль | Сайт | Отправить PM | Цитировать $ ls -la /usr/local/etc/rc.d/
total 36 drwxr-xr-x 2 root wheel 512 Dec 8 12:55 . drwxr-xr-x 15 root wheel 1024 Dec 8 12:55 .. -r-xr-xr-x 1 root wheel 667 Dec 8 2007 antivirus-milter.sh.sample -r-xr-xr-x 1 root wheel 706 Oct 8 21:07 apache -r-xr-xr-x 1 root wheel 873 Oct 17 09:55 avahi-daemon -r-xr-xr-x 1 root wheel 1119 Oct 17 09:55 avahi-dnsconfd -r-xr-xr-x 1 root wheel 974 Dec 1 13:08 clamav-clamd -r-xr-xr-x 1 root wheel 722 Dec 1 13:08 clamav-freshclam -r-xr-xr-x 1 root wheel 508 Dec 1 13:11 cupsd -r-xr-xr-x 1 root wheel 662 Oct 17 09:54 dbus -r-xr-xr-x 1 root wheel 893 Oct 27 15:13 nut -r-xr-xr-x 1 root wheel 945 Oct 27 15:13 nut_upslog -r-xr-xr-x 1 root wheel 782 Oct 27 15:13 nut_upsmon -r-xr-xr-x 1 root wheel 4895 Dec 8 12:55 samba -r-xr-xr-x 1 root wheel 1788 Nov 26 19:19 snmpd -r-xr-xr-x 1 root wheel 813 Nov 26 19:19 snmptrapd |
Отправлено: 13:18, 09-12-2008 | #3 |
Участник сейчас на форуме | Участник вне форума | Автор темы | Сообщение прикреплено |
| |||||
Название темы | Автор | Информация о форуме | Ответов | Последнее сообщение | |
Debian/Ubuntu - Ошибка авторизации в CUPS | NordWest | Общий по Linux | 4 | 06-10-2009 19:43 | |
FreeBSD - Samba3 на FeeBSD, как сервер баз данных для 1С ? | bombording | Общий по FreeBSD | 3 | 16-05-2008 17:00 | |
Samba + CUPS | eleo | Программное обеспечение Linux и FreeBSD | 12 | 11-04-2008 19:30 | |
Установка самбы3: Samba3 *package* now doesn't include ADS support | Ru$LAN | Программное обеспечение Linux и FreeBSD | 2 | 04-02-2008 15:37 | |
ошибка при сборке cups 1.2.7 | kaEwituS | Программное обеспечение Linux и FreeBSD | 2 | 01-02-2007 23:59 |
|