summaryrefslogtreecommitdiff
path: root/meta-phosphor/classes/obmc-phosphor-systemd.bbclass
AgeCommit message (Collapse)AuthorFilesLines
2016-07-28classes-systemd: Add userBrad Bishop1-0/+38
Add a SYSTEMD_USER_${PN}_foo.service variable for setting the service user in systemd service files. Change-Id: I9354b19f6cf5563fe33ee71dc5b8b07c4f380847 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
2016-07-28classes-systemd: Add format strings to unit filesBrad Bishop1-0/+42
Add functionality for enabling python str.format()ing of systemd unit files. Add a variable name to SYSTEMD_SUBSTITUTIONS_${unit} and its value will be substituted into any matching python string {format}'s in the unit file during install. Preconfigured variables: base_bindir -> ${base_bindir} bindir -> ${bindir} sbindir -> ${sbindir} DEFAULT_INSTALL_TARGET -> 'obmc-standby.target' Change-Id: Ife5003e1fc6766bf148a80663c35ab50c6002d26 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com
2016-07-28classes-systemd: Add restart policy warningBrad Bishop1-2/+37
Print a warning if a systemd service unit is detected without a restart policy defined. To inhibit: INHIBIT_SYSTEMD_RESTART_POLICY_WARNING += "${UNIT}" Change-Id: I27436276425d028d892c7c98736781e8577ad8eb Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
2016-07-28classes-systemd: General refactoringBrad Bishop1-25/+25
Take the more idiomatic approach of iterating on SYSTEMD_PACKAGES to find service files. The OBMC_SYSTEMD_SERVICE variable isn't meant to be used directly by recipes. Rename it to something that seems less public. Change-Id: If031937d4716b9c7e6ac1be506457e41109b69c1 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
2016-07-11classes-systemd: Use PN rather than BPNBrad Bishop1-7/+7
This is what all the classes that come with Yocto do. Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
2016-07-11classes-systemd: Fix FILES_${PN} path bugBrad Bishop1-3/+2
Missing space and path sep in the generated path. Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
2016-06-13Support multiple systemd service filesBrad Bishop1-9/+47
Enhance obmc-phosphor-systemd such that an array of service/template socket files in SYSTEMD_SERVICES_${PN} works. Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
2015-10-16-systemd.bbclass incorrect for nativesdk packagesPatrick Williams1-3/+3
We should use the 'bare' package name BPN instead of PN for finding the service file. Otherwise, a -nativesdk package cannot be created because we get a file-not-found error on the service file.
2015-09-15Add 'meta-phosphor/' from commit '93fb535853a24d4c3c42ec425ac92c9d3de13294'Patrick Williams1-0/+14
git-subtree-dir: meta-phosphor git-subtree-mainline: 21f9b84b4b729fbd7acbd465e7a3f726e4d20f91 git-subtree-split: 93fb535853a24d4c3c42ec425ac92c9d3de13294