From 0d25727ca624013fd6303df82cba44ca6ecaecc0 Mon Sep 17 00:00:00 2001 From: grossmj Date: Sat, 20 Nov 2021 16:18:09 +1030 Subject: [PATCH] Simpler Systemd service file. Ref #1996 --- init/gns3.service.systemd | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/init/gns3.service.systemd b/init/gns3.service.systemd index c39e9890..ce504ee1 100644 --- a/init/gns3.service.systemd +++ b/init/gns3.service.systemd @@ -4,17 +4,9 @@ Wants=network-online.target After=network.target network-online.target [Service] -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 -ExecStart=/usr/local/bin/gns3server --log /var/log/gns3/gns3.log \ - --pid /var/run/gns3/gns3.pid --daemon -ExecReload=/bin/kill -s HUP $MAINPID -Restart=on-abort -PIDFile=/var/run/gns3/gns3.pid +ExecStart=/usr/bin/gns3server [Install] -WantedBy=multi-user.target +WantedBy=multi-user.target \ No newline at end of file