From: "Yuri N. Yaschenko" <yura@kr.spfu.gov.ua>
To: community@altlinux.ru
Subject: Re: [Comm] Вход на сервер с 8 до 17
Date: Fri, 28 May 2004 12:41:17 +0300
Message-ID: <200405281241.17338.yura@kr.spfu.gov.ua> (raw)
In-Reply-To: <40B6E02D.9070908@soc.adm.yar.ru>
Hi!
В сообщении от п'ятниця 28 травень 2004 09:46 Дворников Михаил написал(a):
> Anton пишет:
> > Задание добавляется командой crontab -e -u useraccounts. И после
> > "включить-выключить" весь дефолт "живет" в /var/spool/cron
>
> В кроне поставить:
> часы 18-24, минуты */1 /sbin/service smb stop
> часы 0-8, минуты */1 /sbin/service smb stop
> или
> часы 18-8, минуты */1 /sbin/service smb stop
> Будет так работать?
Жестоко. Я бы сделал каждую минуту проверку /var/run/smbd.pid. Для этого
потребуется 2 строки, что-то типа
[ -f /var/run/smbd.pid ] && <path>/service smb stop
[ -f /var/run/smbd.pid ] || <path>/service smb start
Определиться по вкусу (с промежутками времени и условиями).
Тогда в неположенное время самба максимум минуту работать будет.
--
By,
Yuri.
next prev parent reply other threads:[~2004-05-28 9:41 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-05-27 10:38 Дворников Михаил
2004-05-27 10:42 ` Stanislav Yadykin
2004-05-27 10:48 ` Denis S. Filimonov
2004-05-27 10:53 ` Alexander Bokovoy
2004-05-28 4:48 ` Mike Lykov
2004-05-28 5:04 ` Дворников Михаил
2004-05-28 5:21 ` Yura Kalinichenko
2004-05-28 6:39 ` Дворников Михаил
2004-05-28 8:05 ` Maxim Tyurin
2004-05-28 8:50 ` Re[2]: " Ivanov Maxim
2004-05-28 8:57 ` Gennadiy Redko
2004-05-28 9:51 ` Yura Kalinichenko
2004-05-28 9:55 ` [Comm] " Michael Shigorin
2004-05-28 9:46 ` [Comm] " Yura Kalinichenko
2004-05-28 5:32 ` Igo
2004-05-28 5:36 ` Denis S. Filimonov
2004-05-28 6:03 ` Anton
2004-05-28 6:46 ` Дворников Михаил
2004-05-28 9:41 ` Yuri N. Yaschenko [this message]
2004-05-29 8:01 ` [Comm] " Денис Смирнов
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200405281241.17338.yura@kr.spfu.gov.ua \
--to=yura@kr.spfu.gov.ua \
--cc=community@altlinux.ru \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
ALT Linux Community general discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
public-inbox-index community
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.community
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git