From 6b9511b36ae46c70a2968ea1d6aac96832d33ec0 Mon Sep 17 00:00:00 2001 From: jak Date: Sat, 6 Nov 2021 10:00:06 +0000 Subject: [PATCH] update /var/run -> /run to meet FHS spec & Systemd best practices --- init/gns3.service.systemd | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/init/gns3.service.systemd b/init/gns3.service.systemd index c39e9890..02e64f21 100644 --- a/init/gns3.service.systemd +++ b/init/gns3.service.systemd @@ -8,13 +8,13 @@ Type=forking User=gns3 Group=gns3 PermissionsStartOnly=true -ExecStartPre=/bin/mkdir -p /var/log/gns3 /var/run/gns3 -ExecStartPre=/bin/chown -R gns3:gns3 /var/log/gns3 /var/run/gns3 +ExecStartPre=/bin/mkdir -p /var/log/gns3 /run/gns3 +ExecStartPre=/bin/chown -R gns3:gns3 /var/log/gns3 /run/gns3 ExecStart=/usr/local/bin/gns3server --log /var/log/gns3/gns3.log \ - --pid /var/run/gns3/gns3.pid --daemon + --pid /run/gns3/gns3.pid --daemon ExecReload=/bin/kill -s HUP $MAINPID Restart=on-abort -PIDFile=/var/run/gns3/gns3.pid +PIDFile=/run/gns3/gns3.pid [Install] WantedBy=multi-user.target