On 06/07/2016 06:17 AM, Tom H wrote:
>
> I've just looked at your script.
>
> Do
> systemctl try-restart spamassassin
> and
> systemctl try-restart amavisd
> need "2>/dev/null" if you're booted with sysvinit+openrc but have
> systemd installed like the rc-service invocations in the opposite
On Tue, Jun 7, 2016 at 12:59 AM, Michael Orlitzky wrote:
> On 06/06/2016 06:04 PM, Tom H wrote:
>> 1) I've never used systemd on Gentoo but I assume that you can
>> co-install openrc and systemd. So you'd want to check whether systemd
>> is running:
>>
>> [ -d
On Sun, Jun 5, 2016 at 6:27 PM, J. wrote:
> El dom, 05-06-2016 a las 12:09 -0400, Michael Orlitzky escribió:
>>
>> Does that happen with rc-service, too? Or only with the init script
>> (which uses openrc-run)? I recently updated the job on the wiki to
>> use rc-service
On 06/06/2016 06:04 PM, Tom H wrote:
>
> 1) I've never used systemd on Gentoo but I assume that you can
> co-install openrc and systemd. So you'd want to check whether systemd
> is running:
>
> [ -d /run/systemd/system ]
>
I think the way I did this, it will be a no-op if systemd is not
On Sun, Jun 5, 2016 at 9:23 AM, J. wrote:
>
> SYSTEMD_INIT_PID=`pgrep -o -U 0 systemd`
Doesn't systemd call "init" rather "systemd" if you use the "sysv-utils" flag?
On Sun, Jun 5, 2016 at 12:48 AM, Michael Orlitzky wrote:
>
> I'm planning on adding USE=cron to mail-filter/spamassassin to perform
> nightly updates. I have a script that works for OpenRC,
>
> https://wiki.gentoo.org/wiki/SpamAssassin#Daily_updates
>
> but I've commented where I
On 06/05/2016 12:27 PM, J. García wrote:
> It does, seems rc-service is just a wrapper to run stuff in
> /etc/init.d/, proof:
>
Ok, thanks again. I'll redirect stderr when we check the status.
El dom, 05-06-2016 a las 12:09 -0400, Michael Orlitzky escribió:
> Oh ok, I didn't know about that. Yes it would be annoying to have
> that
> emailed to you every day. The first line of the script redirects
> stdout,
>
> # First, redirect stdout to /dev/null.
> exec 1>/dev/null
>
> but
On 06/05/2016 11:37 AM, J. García wrote:
>>
> It works, and is harmless as you say, but since I'm not running OpenRC,
> it prints a warning to stderr about openrc not running, at least I find
> that a bit annoying,
Oh ok, I didn't know about that. Yes it would be annoying to have that
emailed to
El dom, 05-06-2016 a las 09:37 -0600, J. García escribió:
> but redirecting any output from /etc/init.d/$SERVICE status
> to /dev/null.
Correcting, my previous message:
* but redirecting but redirecting any output from /etc/init.d/$SERVICE
status> to /dev/null, might be OK too, as only the
El dom, 05-06-2016 a las 09:37 -0400, Michael Orlitzky escribió:
> On 06/05/2016 03:23 AM, J. García wrote:
> >
> > I run systemd , but I have not tested your script, as of now I'm
> > not
> > using spamassassin, but I will at some time in near future; but
> > looking
> > at the script, I see
On Sun, Jun 5, 2016 at 9:37 AM, Michael Orlitzky wrote:
>
> I did take your suggestion and check for rc-service though. I shouldn't
> count on openrc being in @system forever.
>
I suspect it would still work if openrc weren't installed:
bash -c "/etc/init.d/cups-browsed status
On 06/05/2016 03:23 AM, J. García wrote:
> I run systemd , but I have not tested your script, as of now I'm not
> using spamassassin, but I will at some time in near future; but looking
> at the script, I see some problems, you run the OpenRC restart commands
> even if systemd is available,
El sáb, 04-06-2016 a las 21:01 -0400, Michael Orlitzky escribió:
> On 06/04/2016 08:47 PM, Michael Orlitzky wrote:
> >
> >
> > Sounds good, do you want to try it and add it to the wiki? =)
> >
> I just made an attempt and added it to the wiki:
>
>
On 06/04/2016 08:47 PM, Michael Orlitzky wrote:
>
> Sounds good, do you want to try it and add it to the wiki? =)
>
I just made an attempt and added it to the wiki:
https://wiki.gentoo.org/wiki/SpamAssassin#Daily_updates
It doesn't have any affect on my openrc system (good), but I would
On 06/04/2016 08:19 PM, Rich Freeman wrote:
>
> Couldn't you just check for the existence of systemctl, and if it
> exists call "systemctl try-restart spamd". That will only work if
> systemd is running and spamd is running. I'm sure you can accomplish
> the same via dbus as well.
>
Sounds
On Sat, Jun 4, 2016 at 6:48 PM, Michael Orlitzky wrote:
> I'm planning on adding USE=cron to mail-filter/spamassassin to perform
> nightly updates. I have a script that works for OpenRC,
>
> https://wiki.gentoo.org/wiki/SpamAssassin#Daily_updates
>
> but I've commented where I
I'm planning on adding USE=cron to mail-filter/spamassassin to perform
nightly updates. I have a script that works for OpenRC,
https://wiki.gentoo.org/wiki/SpamAssassin#Daily_updates
but I've commented where I would like to have something similar for
systemd users. Anybody know how to do that?
18 matches
Mail list logo