Skip to content

Commit

Permalink
service.ts: spelling of "re-elevate"
Browse files Browse the repository at this point in the history
  • Loading branch information
throwaway96 committed Mar 17, 2024
1 parent 3c0b043 commit 3eac683
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions services/service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -467,13 +467,13 @@ function runService(): void {
// and its services (since webOS 4.x) are killed using SIGKILL (9) signal.
// In order to retain some part of our service still running as root
// during upgrade we fork off our process and do self-update installation
// in there. After a successful install we relevate the service and exit.
// in there. After a successful install we re-elevate the service and exit.
// Exiting cleanly is an important part, since forked process retains open
// luna bus socket, and thus a new service will not be able to launch
// until we do that.
//
// If reelevation fails for some reason the service should still be
// reelevated on reboot on devices with persistent autostart hooks (since
// If re-elevation fails for some reason the service should still be
// re-elevated on reboot on devices with persistent autostart hooks (since
// we launch elevate-service in startup.sh script)
if (runningAsRoot && isRecord(pkginfo) && pkginfo['Package'] === kHomebrewChannelPackageId) {
message.respond({ statusText: 'Self-update…' });
Expand Down

0 comments on commit 3eac683

Please sign in to comment.