1
0
mirror of https://github.com/Ylianst/MeshAgent synced 2025-12-31 23:53:21 +00:00

Merge pull request #142 from si458/patch-1

add wants and after
This commit is contained in:
Bryan Roe
2022-06-27 10:25:36 -07:00
committed by GitHub

View File

@@ -2723,7 +2723,10 @@ function serviceManager()
{
throw ('unknown location for systemd configuration files');
}
conf.write('[Unit]\nDescription=' + serviceDescription + '\n');
conf.write('[Unit]\n');
conf.write('Description=' + serviceDescription + '\n');
conf.write('Wants=network-online.target\n');
conf.write('After=network-online.target\n');
conf.write('[Service]\n');
conf.write('WorkingDirectory=' + options.installPath + '\n');
conf.write('ExecStart=' + options.installPath.split(' ').join('\\x20') + options.target.split(' ').join('\\x20') + ' ' + parameters + '\n');