NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

misc/55124: /etc/rc.local is never executed



>Number:         55124
>Category:       misc
>Synopsis:       /etc/rc.local is never executed
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    misc-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Mar 29 10:20:01 +0000 2020
>Originator:     Graham Jenkins
>Release:        NetBSD 9.0
>Organization:
>Environment:
NetBSD sunskink.duckdns.org 9.0 NetBSD 9.0 (GENERIC) #0: Fri Feb 14 00:06:28 UTC 2020  mkrepro%mkrepro.NetBSD.org@localhost:/usr/src/sys/arch/amd64/compile/GENERIC amd64

>Description:
/etc/rc.local never seems to be executed
>How-To-Repeat:
$ ls -l /etc/rc.local
-rwxr-xr-x  1 root  wheel  634 Mar 29 20:28 /etc/rc.local
---
$ cat /etc/rc.local
#       $NetBSD: rc.local,v 1.32 2008/06/11 17:14:52 perry Exp $
#       originally from: @(#)rc.local   8.3 (Berkeley) 4/28/94
 ..
if [ -x /usr/bin/touch ]; then
  /usr/bin/touch /var/tmp/TouchMe
if
 ..
---
$ tail -3 /etc/rc.conf
wscons=YES
hostname="sunskink.duckdns.org"
local=YES
---

$ reboot

$ ls -l /var/tmp/TouchMe
ls: /var/tmp/TouchMe: No such file or directory

>Fix:



Home | Main Index | Thread Index | Old Index