Difference between
modified post 1942 by homelinen on Tue 4th Dec 16:21 and
original post 1941 by homelinen on Tue 4th Dec 16:18
Show old version | new version | both versions
| 1 | 1 | # /etc/conf.d/syslog-ng | |
| 3 | 3 | # passed to syslog-ng at startup | |
| 4 | 4 | SYSLOG_NG_OPTS=(–-no-caps) | |
| 6 | 6 | # passed to syslog-ng on config check | |
| 7 | 7 | SYSLOG_NG_CHECKOPTS=(–-no-caps) | |
| 10 | 10 | # /etc/rc.d/syslog-ng | |
| 12 | 12 | case $1 in | |
| 13 | 13 | start) | |
| 14 | 14 | stat_busy "Starting Syslog-NG" | |
| 15 | 15 | echo "Not checking config" | |
| 16 | 16 | checkconfig | |
| 17 | - | if [[ -z $PID ]] && $(/usr/sbin/syslog-ng "${SYSLOG_NG_OPTS[@]}"); then | |
| 17 | + | if [[ -z $PID ]] && /usr/sbin/syslog-ng "${SYSLOG_NG_OPTS[@]}"; then | |
| 18 | 18 | add_daemon syslog-ng | |
| 19 | 19 | stat_done | |
| 20 | 20 | else | |
| 21 | 21 | stat_fail | |
| 22 | 22 | exit 1 | |
| 23 | 23 | fi | |
| 24 | 24 | ;; |