1
0
mirror of https://github.com/GNS3/gns3-server synced 2024-12-26 16:58:28 +00:00

Use EnvironmentFile for Systemd service. Ref https://github.com/GNS3/gns3-gui/issues/3048

This commit is contained in:
grossmj 2020-11-02 18:23:41 +10:30
parent 5743d47327
commit aef8f0dff3

View File

@ -260,7 +260,7 @@ Conflicts=shutdown.target
User=gns3 User=gns3
Group=gns3 Group=gns3
PermissionsStartOnly=true PermissionsStartOnly=true
Environment="PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" EnvironmentFile=/etc/environment
ExecStartPre=/bin/mkdir -p /var/log/gns3 /var/run/gns3 ExecStartPre=/bin/mkdir -p /var/log/gns3 /var/run/gns3
ExecStartPre=/bin/chown -R gns3:gns3 /var/log/gns3 /var/run/gns3 ExecStartPre=/bin/chown -R gns3:gns3 /var/log/gns3 /var/run/gns3
ExecStart=/usr/bin/gns3server --log /var/log/gns3/gns3.log ExecStart=/usr/bin/gns3server --log /var/log/gns3/gns3.log