[systemd-devel] how make reload=restart

"Jóhann B. Guðmundsson" johannbg at gmail.com
Tue May 10 09:36:45 PDT 2011


On 05/10/2011 04:03 PM, Alexey Shabalin wrote:
> Hello!
>
> Our logrotate after finish run script syslog-reload (detect syslog
> daemon - sysklogd or syslog-ng or rsyslog, and run service foo reload)
> But some services do not support reload, for example rsyslog.
> In init.d/rsyslog i can add reload=restart
> Very necessary add option to foo.service like
> Reload=Restart
> or
> ExecReload=Restart
>

Why dont you just tell your script to restart rsyslog instead of 
reloading it?

JBG


More information about the systemd-devel mailing list