X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=docs%2F04_Developer_Guides%2F03_Creating_a_New_Service.md;fp=docs%2F06_Component_Documentation%2FApplication_Framework%2F03_Creating_a_New_Service.md;h=858715da179591c612934ca6248797e1f6064726;hb=04ae05c69a1ee2934b139b179d15ba112ff18ab6;hp=69bde48daae199b8dc1b9566836b3c72748c5ad6;hpb=ecccce4b62c048272dd48378cc05d7165746b83e;p=AGL%2Fdocumentation.git diff --git a/docs/06_Component_Documentation/Application_Framework/03_Creating_a_New_Service.md b/docs/04_Developer_Guides/03_Creating_a_New_Service.md similarity index 91% rename from docs/06_Component_Documentation/Application_Framework/03_Creating_a_New_Service.md rename to docs/04_Developer_Guides/03_Creating_a_New_Service.md index 69bde48..858715d 100644 --- a/docs/06_Component_Documentation/Application_Framework/03_Creating_a_New_Service.md +++ b/docs/04_Developer_Guides/03_Creating_a_New_Service.md @@ -22,8 +22,8 @@ location, determined by the service type (system or user): - `/usr/lib/systemd/user/` for user services -Below is an example of a simple user service, running in a graphical session and -therefore requiring a compositor to be already running before the service starts: +Below is an example of a simple system service that requires the compositor to be +already running before the service starts: ``` [Unit] @@ -34,15 +34,8 @@ After=agl-compositor.service Type=simple ExecStart=/usr/bin/homescreen Restart=on-failure - -[Install] -WantedBy=agl-session.target ``` -The `WantedBy=agl-session.target` indicates the service is part of the default AGL -user session, as mentioned in the [Application Framework](01_Introduction.md#user-session-management) -documentation. - The `Restart=on-failure` directive ensures the service will be automatically restarted by `systemd` in case it crashes.