49 Commits

Author SHA1 Message Date
Wesley Whetstone
9a9cb71d21 add AssociatedBundleIdentifiers to the launchd jobs (#1268)
Authored-by: Wesley Whetstone <wesw@stripe.com>
2025-09-23 15:26:37 -07:00
Greg Neagle
b19e9e748e Move 'internal' tools to /usr/local/munki/libexec 2025-09-11 14:21:13 -07:00
Greg Neagle
2a4f2ffbec Changes to get rid of supervisor 2025-09-10 15:51:19 -07:00
Greg Neagle
9b74a3b4f5 Remove OnDemand key from launchdaemon plists 2025-08-22 11:04:13 -07:00
Greg Neagle
00ca0dfcb0 Bump launchd pkg version 2025-06-09 09:00:55 -07:00
Greg Neagle
bf3f50d984 Add --quiet option when running managedsoftwareupdate --auto 2025-05-29 18:02:19 -07:00
Greg Neagle
a4e170af31 Bump launchd version to match next release 2024-07-15 08:16:56 -07:00
Greg Neagle
8f7cd47a0b Raise launchd base version number 2024-04-15 10:23:48 -07:00
macmule
dc2725e4e7 Relocate MunkiStatus.app and Munki-notifier.app to ../Contents/Helpers/ from ../Contents/Resources/ - Munki6dev base (#1207)
* Relocate MunkiStatus.app and Munki-notifier.app to ../Contents/Helpers/ from ../Contents/Resources/

- Updated location of munki-notifier in code/apps/Managed Software Center/Managed Software Center/Controllers/MainWindowController.swift
- Added code/client/installhelper script
- Amended code/tools/make_munki_mpkg.sh with new locations for munki-notifier and MunkiStatus as well as changes required to leverage `installhelper`
- Amended code/tools/pkgresources/Scripts_app_usage/postinstall to leverage `installhelper`
- Deleted code/tools/pkgresources/Scripts_app_usage/preinstall as the actions within should be handled now by `installhelper`
- Amended code/tools/pkgresources/Scripts_launchd/postinstall to leverage `installhelper`
- Amended launchd/LaunchAgents/com.googlecode.munki.munki-notifier.plist to use the new path to munki-notifier.app
- Amended launchd/LaunchAgents/com.googlecode.munki.MunkiStatus.plist to use the new path to MunkiStatus.app

This is a resubmission of https://github.com/munki/munki/pull/1203, which needed it's base branch changing from `main` to `Munki6dev`

* Update installhelper

 - Removed CHECK_TIME global - 374fbaf922 (r1515000516)
- Remove erroneous login window comments - 374fbaf922 (r1515006835) and 374fbaf922 (r1515006962)
- Simplified IF condition - 374fbaf922 (r1515005565) this was in place incase LimitLoadToSessionType contained multiple values (as it can).

* Update installhelper

- Reverted changes made for - 374fbaf922 (r1515005565)
- Changed constant/global PASSED_ARG to local: launchd_group - https://github.com/munki/munki/pull/1207#discussion_r1515002646 and https://github.com/munki/munki/pull/1207#discussion_r1515002968

* Update installhelper

* Update installhelper

* Update installhelper

* Update installhelper

* Update make_munki_mpkg.sh

Amended so that the launchd pkg is installed by default
2024-03-26 11:04:26 -07:00
Greg Neagle
62dd7700fd Refactor app_usage_monitor into user-level agent and privileged daemon. 2018-04-07 19:10:16 -07:00
Greg Neagle
4479df4ff8 Bump version to 3.0.3 2017-06-30 09:16:17 -07:00
Greg Neagle
61500aac2f Add KeepAlive=true to app_usage_LaunchDaemon. <headdesk/> 2017-06-30 09:13:03 -07:00
Erik Gomez
36b35dc1aa fix launchd plist (#753) 2017-04-20 23:34:04 -05:00
Greg Neagle
98a4892985 Auth restart support for Managed Software Center.app 2017-04-20 14:52:02 -05:00
Greg Neagle
4b1c0c9949 Start of launchd socket support 2017-04-14 10:47:58 -07:00
Erik Gomez
8be9722007 Remove RunAtLoad from munki-notifier (#728)
* Remove RunAtLoad from munki-notifier

* remove RunAtLoad
2017-03-15 08:53:11 -07:00
Erik Gomez
2aa51773d6 lint all launchagents and launchdaemons 2017-03-13 13:47:45 -07:00
Greg Neagle
109c7a8c18 Bump base version numbers to 3.0.0/3.0 2017-02-28 13:37:41 -08:00
Greg Neagle
d6d83057fd Change format of version for launchd version plist so that when we append git revision we get a three-part version number that causes installer to mark it as an update when there is a change 2017-02-26 13:16:27 -08:00
Greg Neagle
22a8bfdbbe Recreate a launchagent that logouthelper can use to launch Managed Software Center. 2017-02-26 13:00:06 -08:00
Greg Neagle
a75799f212 Bump version.plists to 2.9.1 to differentiate from master. May become 3.0.0 eventually. 2017-02-26 12:05:20 -08:00
Greg Neagle
d3801b1071 new launchagent for munki-status, new make_munki_mpkg.sh script 2017-02-26 12:01:43 -08:00
Greg Neagle
93323112bb Add launchdaemon for app_usage_monitor; add build of app_usage package to make_munki_mpkg.sh 2017-02-16 09:12:40 -08:00
Greg Neagle
9dcd7b2726 Add additional paths to com.googlecode.munki.MunkiStatus's KeepAlive PathState array. Fixes issue 305. 2014-03-31 14:48:53 -07:00
Greg Neagle
b80fb9a463 Finish rename of Managed Software Update.app to Managed Software Center.app 2014-02-18 21:45:34 -08:00
Greg Neagle
d677a3d52f Begin launchd plist evolution 2014-02-10 21:57:32 -08:00
Greg Neagle
239663353f Fix issues in munki.py when writing trigger files; edits to launchdaemons so managedsoftwareupdate-loginwindow runs only when a trigger file is present 2011-09-14 15:31:42 -07:00
Rob Middleton
f82da7a1f8 com.googlecode.munki.MunkiStatusLogin.plist -> Logout.plist 2011-09-08 07:42:57 +10:00
Rob Middleton
cb5e0076d0 Speed launch of MSU.app status mode to cover the login window following logout install actions. 2011-09-07 21:23:48 +10:00
Justin McWilliams
915bc1b9ef Add new logouthelper LaunchDaemon for force_install_after_date functionality; increment launchd version.
git-svn-id: http://munki.googlecode.com/svn/trunk@1271 a4e17f2e-e282-11dd-95e1-755cbddbdd66
2011-08-04 23:25:05 +00:00
Greg Neagle
76f6aed7c9 Add version.plist to munki/launchd so we can track version of launchd plists separately from other munki bits.
git-svn-id: http://munki.googlecode.com/svn/trunk@1121 a4e17f2e-e282-11dd-95e1-755cbddbdd66
2011-04-18 19:19:12 +00:00
Justin McWilliams
4046754270 Merge supervisor branch (r1110, r1111, r1114) into trunk.
Summary:
- wrap entire managedsoftwareupdate execution and kill if open for 12 hours.
- move "delay/sleep" logic into supervisor, removing need for updatecheckhelper (but keep updatecheckhelper around so clients continue to work without reloading launchd)


git-svn-id: http://munki.googlecode.com/svn/trunk@1115 a4e17f2e-e282-11dd-95e1-755cbddbdd66
2011-04-13 21:57:02 +00:00
Greg Neagle
b492a70ec0 Add explicit "-a" option to launchapp arguments
git-svn-id: http://munki.googlecode.com/svn/trunk@621 a4e17f2e-e282-11dd-95e1-755cbddbdd66
2010-07-29 17:26:55 +00:00
Greg Neagle
483e8e921b Changed launchd plist fot MunkiStatus to launch Managed Software Update 3 in MunkiStatus mode.
git-svn-id: http://munki.googlecode.com/svn/trunk@580 a4e17f2e-e282-11dd-95e1-755cbddbdd66
2010-07-21 02:55:01 +00:00
Greg Neagle
9093373f84 Changed com.googlecode.munki.MunkiStatus.plist launch path to new location for MunkiStatus.app
Changed com.googlecode.munki.ManagedSoftwareUpdate.plist launch path to full path for Managed Software Update.app

git-svn-id: http://munki.googlecode.com/svn/trunk@460 a4e17f2e-e282-11dd-95e1-755cbddbdd66
2010-02-17 18:44:12 +00:00
Greg Neagle
e562922e6e More com.googlecode.munki.munkistatus vs com.googlecode.munki.MunkiStatus cleanup
git-svn-id: http://munki.googlecode.com/svn/trunk@448 a4e17f2e-e282-11dd-95e1-755cbddbdd66
2010-02-08 19:23:14 +00:00
Greg Neagle
0b14594677 Renamed com.googlecode.munki.munkistatus.plist to com.googlecode.munki.MunkiStatus.plist to reflect the GUI app it's meant to launch
git-svn-id: http://munki.googlecode.com/svn/trunk@447 a4e17f2e-e282-11dd-95e1-755cbddbdd66
2010-02-08 19:17:53 +00:00
Greg Neagle
29ba2cb203 Removing com.googlecode.munki.munkistatus.plist to later replace with renamed version since I don't know how to do a SVN rename
git-svn-id: http://munki.googlecode.com/svn/trunk@446 a4e17f2e-e282-11dd-95e1-755cbddbdd66
2010-02-08 19:15:07 +00:00
Greg Neagle
cc8a4b5afe Changed path to MunkiStatus.app
git-svn-id: http://munki.googlecode.com/svn/trunk@444 a4e17f2e-e282-11dd-95e1-755cbddbdd66
2010-02-06 00:01:14 +00:00
Greg Neagle
28d3f1596d Added new launchapp tool to make sure MunkiStatus.app and Managed Software Update.app are launched only in the context of the current GUI user.
Updated LaunchAgents com.googlecode.munki.munkistatus.plist and com.googlecode.munki.ManagedSoftwareUpdate.plist to call the launchapp tool.

git-svn-id: http://munki.googlecode.com/svn/trunk@440 a4e17f2e-e282-11dd-95e1-755cbddbdd66
2010-02-05 18:50:17 +00:00
Greg Neagle
1e5d939458 New launchd LaunchAgent to allow managedsoftwareupdate, running in the root context, to reliably launch Managed Software Update.app in the user's context.
git-svn-id: http://munki.googlecode.com/svn/trunk@436 a4e17f2e-e282-11dd-95e1-755cbddbdd66
2010-02-04 18:54:02 +00:00
Greg Neagle
71bc85dd62 New launch agent to control MunkiStatus.app.
git-svn-id: http://munki.googlecode.com/svn/trunk@421 a4e17f2e-e282-11dd-95e1-755cbddbdd66
2010-01-06 00:40:30 +00:00
Greg Neagle
266db71068 Changed LaunchDaemons to use KeepAlive paths rather than WatchPaths.
git-svn-id: http://munki.googlecode.com/svn/trunk@420 a4e17f2e-e282-11dd-95e1-755cbddbdd66
2010-01-06 00:39:18 +00:00
Greg Neagle
c2b963b353 These had been in the packaged released, but had not been updated in SVN. Whoops.
git-svn-id: http://munki.googlecode.com/svn/trunk@386 a4e17f2e-e282-11dd-95e1-755cbddbdd66
2009-11-25 19:57:29 +00:00
Greg Neagle
e3f5cc4f14 Updated launchd plists to reflect new tool names and options.
git-svn-id: http://munki.googlecode.com/svn/trunk@115 a4e17f2e-e282-11dd-95e1-755cbddbdd66
2009-07-14 18:10:06 +00:00
Greg Neagle
5035acbe20 Updated launchd plists to proposed paths (/usr/local/munki/*)
git-svn-id: http://munki.googlecode.com/svn/trunk@101 a4e17f2e-e282-11dd-95e1-755cbddbdd66
2009-06-24 04:39:31 +00:00
Greg Neagle
cea9f85232 Updated example launchd plists.
git-svn-id: http://munki.googlecode.com/svn/trunk@92 a4e17f2e-e282-11dd-95e1-755cbddbdd66
2009-05-27 18:16:55 +00:00
Greg Neagle
e83002dddd Updated launchd examples.
git-svn-id: http://munki.googlecode.com/svn/trunk@89 a4e17f2e-e282-11dd-95e1-755cbddbdd66
2009-05-22 19:16:10 +00:00
Greg Neagle
a517369efa Sample launchd LaunchAgent for use with ManagedInstaller and MunkiStatus.app
git-svn-id: http://munki.googlecode.com/svn/trunk@70 a4e17f2e-e282-11dd-95e1-755cbddbdd66
2009-05-18 20:24:31 +00:00