#52525: openvpn2 startup script not working -------------------------------+-------------------------------- Reporter: thomas.hartwig@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: | Keywords: Port: openvpn2 | -------------------------------+-------------------------------- Description changed by mf2k@…: Old description:
Hi, I tested the openvpn2 port and I have major issues with the startup script org.macports.openvpn2.plist. I can run the daemon manually and the tunnel is established but I can not get it running automatically via launchctl for following reasons:
1. bin -> sbin: the script uses the wrong location for openvpn2, instead of /opt/local/bin/openvpn2 it should be /opt/local/sbin/openvpn2 2. daemondo: I can run the whole daemondo call from the command line, but if I run the script via launchctl it only logs that the service did run for 0 seconds only. I can not find any further ouptut showing me what might be wrong with the script. 3. debug: launchtl is giving a warning: The Debug key is no longer respected. Please remove it. 4. inefficient: launchtl is giving a warning: This service is defined to be constantly running and is inherently inefficient.
In the end it is not starting and I don't know where to look else, my only source of logging is /var/log/system.log.
My system is Sierra 10.12.
This is how I can establish the tunnel:
daemondo --label=openvpn2 --start-cmd /opt/local/sbin/openvpn2 --cd /opt/local/etc/openvpn2 --config /opt/local/etc/openvpn2/my.conf \;
The script currently looks like this:
<?xml version='1.0' encoding='UTF-8'?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd" > <plist version='1.0'> <dict> <key>Label</key><string>org.macports.openvpn2</string> <key>ProgramArguments</key> <array> <string>/opt/local/bin/daemondo</string> <string>--label=openvpn2</string> <string>--start-cmd</string> <string>/opt/local/sbin/openvpn2 --config /opt/local/etc/openvpn2/my.conf</string> <string>;</string> <string>--pid=exec</string> </array> <key>Debug</key><false/> <key>Disabled</key><false/> <key>KeepAlive</key><true/> </dict> </plist>
New description: Hi, I tested the openvpn2 port and I have major issues with the startup script org.macports.openvpn2.plist. I can run the daemon manually and the tunnel is established but I can not get it running automatically via launchctl for following reasons: 1. bin -> sbin: the script uses the wrong location for openvpn2, instead of /opt/local/bin/openvpn2 it should be /opt/local/sbin/openvpn2 2. daemondo: I can run the whole daemondo call from the command line, but if I run the script via launchctl it only logs that the service did run for 0 seconds only. I can not find any further ouptut showing me what might be wrong with the script. 3. debug: launchtl is giving a warning: The Debug key is no longer respected. Please remove it. 4. inefficient: launchtl is giving a warning: This service is defined to be constantly running and is inherently inefficient. In the end it is not starting and I don't know where to look else, my only source of logging is /var/log/system.log. My system is Sierra 10.12. This is how I can establish the tunnel: {{{ daemondo --label=openvpn2 --start-cmd /opt/local/sbin/openvpn2 --cd /opt/local/etc/openvpn2 --config /opt/local/etc/openvpn2/my.conf \; }}} The script currently looks like this: {{{ <?xml version='1.0' encoding='UTF-8'?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd" > <plist version='1.0'> <dict> <key>Label</key><string>org.macports.openvpn2</string> <key>ProgramArguments</key> <array> <string>/opt/local/bin/daemondo</string> <string>--label=openvpn2</string> <string>--start-cmd</string> <string>/opt/local/sbin/openvpn2 --config /opt/local/etc/openvpn2/my.conf</string> <string>;</string> <string>--pid=exec</string> </array> <key>Debug</key><false/> <key>Disabled</key><false/> <key>KeepAlive</key><true/> </dict> </plist> }}} -- -- Ticket URL: <https://trac.macports.org/ticket/52525#comment:4> MacPorts <https://www.macports.org/> Ports system for the Mac operating system