site_archiver@lists.apple.com Delivered-To: installer-dev@lists.apple.com Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type; bh=fIRxWhKURXEzGIMlPAOSJn5AXQCqXe+VMHqUrBvC8gg=; b=aSpy3FddZn0onr/IzCOhp05jZwvNn84F25XmsQMFzr49ynHYBIbpgzGcR85DxznGjs /HocCWYK/RwAcPO9k80ozW4u3eocfLakjk/J1Il6507LboaIpWfXMzmw8wgWSJ9tkUpw nwYP2TzbSOTmHm1O5SFoWqxs6i9/djSobv5ps= Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=fEn/9iDnaIMR15+zhITwf3LxR6Xiq50vCvkSDoo136Rn5F1Ev5BKSQCooBytV9ihTN cBM+W+auwxqHCvk2KbnPiMyHf0zBBhPLzW3w7tDCWOv39MiB5cnu4T54bsl+efO1cyAX MN0lvOR9QfVhybKOwj647t1tV2l2+AsaAkaWA= hello I have faced with a problem needing to execute 2 actions after installation (i placed them as postinstall scripts). Firstly, i need to install plist files into /Library/LaunchDaemons and /Library/LaunchAgents (this can be done only from "root" script) And then i need to start a daemon and an agent using launchctl The problem is that while daemon can be started (because post installation script is running as root, i can execute launchctl load -w /Library/LaunchDaemons/com.mydaemon), i can't start an agent. Agent needs to be loaded and started by a user, not by a root - if a user executes a command "sudo launchctl load -w /Library/LaunchAgents/com.myagent", this agent will be loaded into system domain - i.e. by a global launchd instance while i need to load it using a per-session launchd instance. In short, is it possible somehow to install files as root, the to execute a script on behalf of a normal user, who launched installation script, and then execute another script on behalf of root? I am currently reading manuals about command line packagemaker utilities, because it seems that GUI tool doesn't allow to explicitly specify how to run postinstallation scripts. How could i solve this? Is it possible? Or the only solution is to tell the user to reboot the machine after installing my application? Thanks for any advice! _______________________________________________ Do not post admin requests to the list. They will be ignored. Installer-dev mailing list (Installer-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/installer-dev/site_archiver%40lists.a... This email sent to site_archiver@lists.apple.com