0

我正在尝试在 Mac 服务器上设置 FreeRADIUS。我的 RADIUS 服务器工作正常,唯一的问题是当系统重新启动时我无法让它保持活动状态。以下是我在 /Library/LaunchDaemons/org.freeradius.radiusd.plist 中的一个 plist:

<?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>KeepAlive</key>
    <true/>

    <key>RunAtLoad</key>
    <true/>

    <key>EnableTransactions</key>
    <true/>

    <key>Label</key>
    <string>org.freeradius.radiusd</string>

    <key>StandardErrorPath</key>
    <string>/tmp/mycommand.err</string>

    <key>StandardOutPath</key>
    <string>/tmp/mycommand.out</string>

    <key>ProgramArguments</key>
    <array>
      <string>/usr/local/bin/radiusd</string>
      <string>-X</string>
      <string>-d</string>
      <string>/usr/local/etc/raddb</string>
    </array>
  </dict>
</plist>

重新启动后,然后使用以下命令

sudo launchctl load -w /Library/LaunchDaemons/org.freeradius.radiusd.plist

服务器启动正常,没有任何问题,并且它保持活动状态。

我查看了 /tmp/mycommand.out 中的输出(.err 为空),最后几行是:

Listening on auth address * port 1812 bound to server default
Listening on acct address * port 1813 bound to server default
Listening on auth address :: port 1812 bound to server default
Listening on acct address :: port 1813 bound to server default
Listening on auth address 127.0.0.1 port 18120 bound to server inner-tunnel
Listening on proxy address * port 53565
Listening on proxy address :: port 53566
Ready to process requests

所以它似乎可以启动了。

我还检查了 plist 上的权限,它们如下

-rw-r--r--   1 root  wheel   738 27 Jun 11:41 org.freeradius.radiusd.plist

有任何想法吗?

4

0 回答 0