简体   繁体   中英

How to install service on macOS with custom arguments in install4j?

The Install a service action supports calling the service executable with custom arguments on windows . I don't see any option to do that on macOS . Is that possible?

One workaround seems to be to create a separate service launcher for macOS that passes in the arguments, but I'd like to avoid creating separate launchers for each OS if possible.

The "Install a service" action implements several OS-specific features for services that depend on the capabilities of the OS. The "Windows arguments" property is a such a case. macOS does not have an "arguments at install time" feature for daemons, so the action does not support it.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM