БЕГЕМОТИКОВ МОЖНО! Войти !bnw Сегодня Клубы
УНЯНЯ. У нас есть немножечко инфы об этом пользователе. Мы знаем, что он понаписал, порекомендовал и даже и то и другое сразу. А ещё у нас есть RSS.
Теги: Клубы:

% sudo /etc/init.d/dnsmasq restart
Restarting dnsmasq (via systemctl): dnsmasq.serviceJob for dnsmasq.service failed. See 'systemctl status dnsmasq.service' and 'journalctl -xn' for details.
failed!
% journalctl -xn

No journal files were found.

#KJSMAV (4) / @ninesigns / 3502 дня назад

With init, skipping a scheduled fsck during boot was easy, you just pressed
Ctrl+c, it was obvious! Today I was late for an online conference. I got
home, turned on my computer, and systemd decided it was time to run fsck on my
1TB hard drive. Ok, I just skip it, right? Well, Ctrl+c does not work, ESC
does not work, nothing seems to work. I Googled for an answer on my phone but
nothing. So, is there a mysterious set of commands they came up with to skip an
fsck or is it yet another flaw?

#R7QO9H (19+6) / @ninesigns / 3624 дня назад

Увидел следующую замену systemd:

#define _XOPEN_SOURCE 700
#include <signal.h>
#include <unistd.h>

int main()
{
    sigset_t set;
    int status;

    if (getpid() != 1) return 1;

    sigfillset(&set);
    sigprocmask(SIG_BLOCK, &set, 0);

    if (fork()) for (;;) wait(&status);

    sigprocmask(SIG_UNBLOCK, &set, 0);

    setsid();
    setpgid(0, 0);
    return execve("/etc/rc", (char *[]){ "rc", 0 }, (char *[]){ 0 });
}

Какие подводные камни?

#8NZN4P (7+1) / @ninesigns / 3937 дней назад
ipv6 ready BnW для ведрофона BnW на Реформале Викивач Котятки

Цоперайт © 2010-2016 @stiletto.