Now answering from the right address:

On Wed, 27 Jul 2016 19:51:40 +0200 Alejandro <alejandro@localhost> wrote:
> If /var/run/munin/ doesn't exists munin-node doesn't start either.
>
> This could be solved adding to the systemd service definition
> (/lib/systemd/system/munin-node.service) this line:
>
> ExecStartPre=/bin/mkdir -p /var/run/munin /var/log/munin;/bin/chown
> munin:root /var/run/munin;/bin/chown munin:www-data /var/log/munin
>
> Creating those files before starting was the behavior of
> /etc/init.d/munin script before systemd arrived.
>
> Please find attached the patch file.
>
> Regards,
> Alejandro Suarez
>

--- munin-node.service 2016-07-27 17:28:03.808943349 +0000
+++ munin-node.service.new  2016-07-27 17:31:03.388939629 +0000
@@ -6,6 +6,7 @@
 EnvironmentFile=-/etc/default/munin-node
 Type=forking
 Restart=always
+ExecStartPre=/bin/mkdir -p /var/run/munin /var/log/munin;/bin/chown munin:root /var/run/munin;/bin/chown munin:www-data /var/log/munin
 ExecStart=/usr/sbin/munin-node $DAEMON_ARGS
 PIDFile=/run/munin/munin-node.pid
 

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to