ubuntu:startup_service:unit_file
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
ubuntu:startup_service:unit_file [2021/07/09 08:42] – peter | ubuntu:startup_service:unit_file [2021/07/09 08:44] (current) – peter | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Ubuntu - Startup Service - Unit File ====== | ====== Ubuntu - Startup Service - Unit File ====== | ||
+ | |||
+ | Unit files are generally located within the R/W filesystem at / | ||
+ | |||
+ | ---- | ||
===== Create a Service Startup ===== | ===== Create a Service Startup ===== | ||
+ | |||
+ | [Unit] | ||
+ | Description=MyApp | ||
+ | After=docker.service | ||
+ | Requires=docker.service | ||
+ | |||
+ | [Service] | ||
+ | TimeoutStartSec=0 | ||
+ | ExecStartPre=-/ | ||
+ | ExecStartPre=-/ | ||
+ | ExecStartPre=/ | ||
+ | ExecStart=/ | ||
+ | |||
+ | [Install] | ||
+ | WantedBy=multi-user.target | ||
+ | </ | ||
+ | |||
+ | ---- | ||
<file bash / | <file bash / |
ubuntu/startup_service/unit_file.1625820162.txt.gz · Last modified: 2021/07/09 08:42 by peter