Browse Source

"if [ -f" --> "if [ -x"

OPENBSD_2_3
dima 26 years ago
parent
commit
e8a68365ae
1 changed files with 5 additions and 5 deletions
  1. +5
    -5
      src/etc/rc.local

+ 5
- 5
src/etc/rc.local View File

@ -1,4 +1,4 @@
# $OpenBSD: rc.local,v 1.17 1998/01/12 00:32:45 mickey Exp $
# $OpenBSD: rc.local,v 1.18 1998/02/01 22:30:33 dima Exp $
# site-specific startup actions, daemons, and other things which
# can be done AFTER your system goes into securemode. For actions
@ -10,20 +10,20 @@
echo -n 'starting local daemons:'
if [ -f /usr/local/etc/httpd/httpd ]; then
if [ -x /usr/local/etc/httpd/httpd ]; then
echo -n ' httpd'; /usr/local/etc/httpd/httpd
fi
if [ -f /usr/local/sbin/sshd ]; then
if [ -x /usr/local/sbin/sshd ]; then
echo -n ' sshd'; /usr/local/sbin/sshd
fi
if [ -f /usr/local/sbin/cfsd ]; then
if [ -x /usr/local/sbin/cfsd ]; then
echo -n ' cfsd'; /usr/local/sbin/cfsd
mount -o port=3049,nfsv2,intr localhost:/null /crypt
fi
if [ -f /usr/local/sbin/snmpd ]; then
if [ -x /usr/local/sbin/snmpd ]; then
echo -n ' snmpd'; /usr/local/sbin/snmpd
fi


Loading…
Cancel
Save