#
f11d686c |
|
23-Aug-2015 |
Michael Lotz <mmlr@mlotz.ch> |
launch_daemon: Remove extra quoting around env variables. The extra quotes aren't needed and cause problems when not parsed through a shell. For example LD_PRELOAD which is handled by the runtime_loader directly failed to work as there was no way to remove the extra single quotes. Note that quotes and single quotes can still be added to the variables through respective quoting in the driver settings syntax.
|
#
f6b2da0a |
|
22-Aug-2015 |
Michael Lotz <mmlr@mlotz.ch> |
launch_daemon: Add env vars from sourced files to correct list. The environment variables were always added to the static environment list instead of the one supplied as argument. This worked for targets, as there the scripts are evaluated before the static environment is used. For services and jobs this isn't the case, causing sourced environment variables to be missing.
|
#
2ca4f3f8 |
|
17-Jul-2015 |
Axel Dörfler <axeld@pinc-software.de> |
launch_daemon: Jobs were started before their target. * A job must not be launched when its target hasn't been launched yet. This fixes Tracker launching when the mount_server scanned the initial disk, even though the FirstBootPrompt was showing. * Jobs are no longer initialized when their target has not been launched yet. This also means that you cannot talk to a service beforehand in this case. * Slight refactoring and clarifying, even added some documentation :-) * _TriggerJob() is now called _LaunchJob(), and does all the checks for jobs that _LaunchJobs() does now for targets.
|
#
f6647de3 |
|
16-Jul-2015 |
Axel Dörfler <axeld@pinc-software.de> |
launch_daemon: Fixed NULL events. * Also, events now can actually be NULL when there is an empty "on" field in the settings. * This fixes a crash, too.
|
#
5b6c827e |
|
14-Jul-2015 |
Axel Dörfler <axeld@pinc-software.de> |
launch_daemon: Outlined basic event mechanism.
|
#
a7ef196c |
|
10-Jul-2015 |
Axel Dörfler <axeld@pinc-software.de> |
launch_daemon: Improved error reporting, minor cleanup.
|
#
634aefe4 |
|
08-Jul-2015 |
Axel Dörfler <axeld@pinc-software.de> |
launch_daemon: Now supports getting the env from a script. * Scripts from targets are evaluated once on first target launch, scripts from jobs are evaluated on each start. * The "desktop" target now sources SetupEnvironment as usual.
|
#
ea19a80e |
|
06-Jul-2015 |
Axel Dörfler <axeld@pinc-software.de> |
launch_daemon: Added support for setting env. * We cannot "source" files through a shell yet, though.
|
#
1281fcd3 |
|
01-Jul-2015 |
Axel Dörfler <axeld@pinc-software.de> |
launch_daemon: Improved job overwriting. * Certain things are set on job construction only. * Now checks if the message has the field before updating it. * Might not be final yet (it is confusing that 'requires' will add to the requirements, but 'launch' will replace all arguments).
|
#
c2d703ea |
|
24-Jun-2015 |
Axel Dörfler <axeld@pinc-software.de> |
launch_daemon: Make sure conditions are properly deleted.
|
#
1e9c9871 |
|
22-Jun-2015 |
Axel Dörfler <axeld@pinc-software.de> |
launch_daemon: Added basic support for conditions. * Admittedly not very well thought out, but it should be good enough for now; it doesn't really make sense to initialize jobs that is never run due to failed conditions. * Job, and Target now have a common base class BaseJob that deals with the conditions.
|
#
f11d686c96f7ac06b9ea411367548d34229548a3 |
|
23-Aug-2015 |
Michael Lotz <mmlr@mlotz.ch> |
launch_daemon: Remove extra quoting around env variables. The extra quotes aren't needed and cause problems when not parsed through a shell. For example LD_PRELOAD which is handled by the runtime_loader directly failed to work as there was no way to remove the extra single quotes. Note that quotes and single quotes can still be added to the variables through respective quoting in the driver settings syntax.
|
#
f6b2da0a717c495da57e6978d7ab7e0ada5640dd |
|
22-Aug-2015 |
Michael Lotz <mmlr@mlotz.ch> |
launch_daemon: Add env vars from sourced files to correct list. The environment variables were always added to the static environment list instead of the one supplied as argument. This worked for targets, as there the scripts are evaluated before the static environment is used. For services and jobs this isn't the case, causing sourced environment variables to be missing.
|
#
2ca4f3f81d28b528d479f95e29cf6f936e2c7dc7 |
|
17-Jul-2015 |
Axel Dörfler <axeld@pinc-software.de> |
launch_daemon: Jobs were started before their target. * A job must not be launched when its target hasn't been launched yet. This fixes Tracker launching when the mount_server scanned the initial disk, even though the FirstBootPrompt was showing. * Jobs are no longer initialized when their target has not been launched yet. This also means that you cannot talk to a service beforehand in this case. * Slight refactoring and clarifying, even added some documentation :-) * _TriggerJob() is now called _LaunchJob(), and does all the checks for jobs that _LaunchJobs() does now for targets.
|
#
f6647de349e44b22528cb3d738523e2033287856 |
|
16-Jul-2015 |
Axel Dörfler <axeld@pinc-software.de> |
launch_daemon: Fixed NULL events. * Also, events now can actually be NULL when there is an empty "on" field in the settings. * This fixes a crash, too.
|
#
5b6c827e828a20bb9d7bb357bdcac799fa51d7df |
|
14-Jul-2015 |
Axel Dörfler <axeld@pinc-software.de> |
launch_daemon: Outlined basic event mechanism.
|
#
a7ef196cf1ed5ee149c3cfbc4cce893ff3122fd2 |
|
10-Jul-2015 |
Axel Dörfler <axeld@pinc-software.de> |
launch_daemon: Improved error reporting, minor cleanup.
|
#
634aefe4fdaa245ad977dd7e8eff1744f380a02d |
|
08-Jul-2015 |
Axel Dörfler <axeld@pinc-software.de> |
launch_daemon: Now supports getting the env from a script. * Scripts from targets are evaluated once on first target launch, scripts from jobs are evaluated on each start. * The "desktop" target now sources SetupEnvironment as usual.
|
#
ea19a80ed6ba3f34abb2e4d138ddc666580b8d82 |
|
06-Jul-2015 |
Axel Dörfler <axeld@pinc-software.de> |
launch_daemon: Added support for setting env. * We cannot "source" files through a shell yet, though.
|
#
1281fcd3cbf8c621f4193344944c4833fa5ef8d3 |
|
01-Jul-2015 |
Axel Dörfler <axeld@pinc-software.de> |
launch_daemon: Improved job overwriting. * Certain things are set on job construction only. * Now checks if the message has the field before updating it. * Might not be final yet (it is confusing that 'requires' will add to the requirements, but 'launch' will replace all arguments).
|
#
c2d703ea5d7306247caea39bc96a9c8dae03706f |
|
24-Jun-2015 |
Axel Dörfler <axeld@pinc-software.de> |
launch_daemon: Make sure conditions are properly deleted.
|
#
1e9c98710286129c9161f29787742b1ea2bff449 |
|
22-Jun-2015 |
Axel Dörfler <axeld@pinc-software.de> |
launch_daemon: Added basic support for conditions. * Admittedly not very well thought out, but it should be good enough for now; it doesn't really make sense to initialize jobs that is never run due to failed conditions. * Job, and Target now have a common base class BaseJob that deals with the conditions.
|