Daemon process is not able to write the files in MAC in release mode

Hi Team,

We have developed an Daemon process using Microsoft Windows Worker Service written in .NET Core. On the first run the daemon process supposed to copy an sqlite database file on our specified path and then it will also generate some image files and save them on the specified path. The daemon process is working perfectly fine in DEBUG mode. However whenever we launch the daemon process in RELEASE mode via launchd command, the daemon process is unable to copy or write the files on the specified path. It looks like in the RELEASE mode the exe file of daemon needs file writing permissions to copy and write the files.

Can you please guide us how can we resolve this issue and grant the file writing rights to the daemon process to work?

Thank you. Asif from Techliance.

Replies

However whenever we launch the daemon process in RELEASE mode via launchd command

Can you explain more about how you’ve set this up? Did you copy a launchd property list file to /Library/LaunchDaemons?

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"