From: "Kharitonov A. Dmitry" <kharpost@rambler.ru>
To: ALT Linux Community general discussions <community@lists.altlinux.org>
Subject: Re: [Comm] rc.local
Date: Fri, 22 May 2015 23:20:59 +0300
Message-ID: <555F8FAB.2090403@rambler.ru> (raw)
In-Reply-To: <201505221303.16844@3114>
22.05.2015 13:03, Хихин Руслан пишет:
> Здравствуйте !
> On Friday 22 May 2015 11:07:42 Kharitonov A. Dmitry написал(а):
>
>> 22.05.2015 08:14, Hihin Ruslan пишет:
>>> Здравствуйте Kharitonov A. Dmitry
>>>
>>> Как вы это определили?
>> cat /etc/init.d/local
>> #!/bin/sh
>> #
>> set -x
>> exec >/etc/1.log 2>&1
>> # This script should be executed after all the other init scripts.
>> ...
> Ну да, etc/init.d/local в systemd и не запускается, в отличии,
> от /etc/rc.local
Ну так всё равно не работает. Я хочу, чтобы при запуске удалялись пустые
каталоги.
cat /etc/rc.d/rc.local
#/bin/bash
set -x
exec >/home/user/local2.log 2>&1
rmdir --verbose --ignore-fail-on-non-empty /media/* || :
и не могу понять что этому мешает.
ls -l /etc/rc.d/rc.local
-rwxr-xr-x 1 root root 111 май 22 23:13 /etc/rc.d/rc.local
next prev parent reply other threads:[~2015-05-22 20:20 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-05-22 5:07 Kharitonov A. Dmitry
2015-05-22 4:43 ` Hihin Ruslan
2015-05-22 5:31 ` Kharitonov A. Dmitry
2015-05-22 5:27 ` [Comm] [OBORONA-SPAM] rc.local Hihin Ruslan
2015-05-22 5:37 ` [Comm] rc.local Hihin Ruslan
2015-05-22 8:01 ` Kharitonov A. Dmitry
2015-05-22 5:14 ` Hihin Ruslan
2015-05-22 8:07 ` Kharitonov A. Dmitry
2015-05-22 10:03 ` Хихин Руслан
2015-05-22 20:20 ` Kharitonov A. Dmitry [this message]
2015-05-22 21:55 ` Денис Смирнов
2015-05-23 7:40 ` Kharitonov A. Dmitry
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=555F8FAB.2090403@rambler.ru \
--to=kharpost@rambler.ru \
--cc=community@lists.altlinux.org \
/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