From: Sergey <a_s_y@sama.ru> To: ALT Linux Sisyphus mailing list <sisyphus@lists.altlinux.org> Subject: Re: [sisyphus] I: spamassassin 3.4.0 Date: Fri, 20 Jun 2014 23:33:43 +0400 Message-ID: <201406202333.43140.a_s_y@sama.ru> (raw) In-Reply-To: <20140620184646.GB2304@altlinux.org> On Friday 20 June 2014, Dmitry V. Levin wrote: > > Ну так работает же. Или где-то не работает ? Можно "rewrote", > > или "temporary rewrote", но я не знаю срок этого temporary... > > В скрипте есть и другие функции. > Если их надо фиксить, то, наверное, сразу все 4, а не половину. Этих только две. В start() start_daemon() работает нормально, stop() и reload() переписаны, в restart() вызываются stop() и start(). А вот про пятую, действительно, забыл. Надо ещё status() заменить. >> Почему-то /var/spool/spamassassin пакуется с %attr(0775,root,mail), >> это место я не менял, > Раньше дочерние процессы работали под пользователем spamd. Нет, или это было очень давно. > Что изменилось, почему сейчас речь идет о root и mail ? RUNAS=root и start() { start_daemon --pidfile "$PIDFILE" --lockfile "$LOCKFILE" --expect-user "$RUNAS" -- \ spamd -d --pidfile=$PIDFILE $CHILDUSEROPT $SPAMDOPTIONS RETVAL=$? return $RETVAL } остались без изменений (кроме добавленного $CHILDUSEROPT в последней сборке). То есть, запуск шёл от root. Это вот старый spamd, запущенный с конфигом по-умолчанию: # ps aux|grep spam root 6192 34.5 1.7 41080 37432 ? Ss 23:19 0:03 /usr/bin/spamd -d --pidfile=/var/run/spamd.pid root 6193 0.0 1.6 41080 35424 ? S 23:19 0:00 spamd child root 6194 0.0 1.6 41080 35424 ? S 23:19 0:00 spamd child При этом, в логе можно было видеть такие строчки: spamd[578745]: spamd: still running as root: user not specified with -u, not found, or set to root, falling back to nobody spamd[578745]: bayes: cannot write to /var/spool/spamassassin/bayes_journal, bayes db update ignored: Permission denied -- С уважением, Сергей a_s_y@sama.ru
next prev parent reply other threads:[~2014-06-20 19:33 UTC|newest] Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top 2014-06-20 8:21 Sergey 2014-06-20 10:02 ` Dmitry V. Levin 2014-06-20 10:58 ` Sergey 2014-06-20 17:35 ` Sergey 2014-06-21 12:20 ` Sergey 2014-06-20 18:46 ` Dmitry V. Levin 2014-06-20 19:33 ` Sergey [this message] 2015-11-16 5:54 ` Sergey
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=201406202333.43140.a_s_y@sama.ru \ --to=a_s_y@sama.ru \ --cc=sisyphus@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 Sisyphus discussions This inbox may be cloned and mirrored by anyone: git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/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 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \ sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru public-inbox-index sisyphus Example config snippet for mirrors. Newsgroup available over NNTP: nntp://lore.altlinux.org/org.altlinux.lists.sisyphus AGPL code for this site: git clone https://public-inbox.org/public-inbox.git