diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2020-09-14 09:01:48 +0200 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2020-10-22 11:05:17 +0200 |
commit | 67b2edb21f11d7b3bd2b5f8c88ceed4c5194c78a (patch) | |
tree | e12c85f8126cbd1271b4ef85f8fa055cb4be8d13 /src/xdg-autostart-generator/xdg-autostart-service.c | |
parent | test-path: use Type=exec (diff) | |
download | systemd-67b2edb21f11d7b3bd2b5f8c88ceed4c5194c78a.tar.xz systemd-67b2edb21f11d7b3bd2b5f8c88ceed4c5194c78a.zip |
xdg-autostart-generator: use Type=exec
We check that the binary exists before writing the service file, but
let's also not consider the service started until the fork has happened.
This is still relatively new stuff, so we're can change the implementation
details like this.
Diffstat (limited to 'src/xdg-autostart-generator/xdg-autostart-service.c')
-rw-r--r-- | src/xdg-autostart-generator/xdg-autostart-service.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xdg-autostart-generator/xdg-autostart-service.c b/src/xdg-autostart-generator/xdg-autostart-service.c index 9317e9d0289..da5e79dcff5 100644 --- a/src/xdg-autostart-generator/xdg-autostart-service.c +++ b/src/xdg-autostart-generator/xdg-autostart-service.c @@ -604,7 +604,7 @@ int xdg_autostart_service_generate_unit( fprintf(f, "\n[Service]\n" - "Type=simple\n" + "Type=exec\n" "ExecStart=:%s\n" "Restart=no\n" "TimeoutSec=5s\n" |