NetBSD-Users archive

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

Re: portable file touched during boot



> I'm trying to hack up a Make rule that's only run once after a reboot
> by having it depend on a file touched during boot.

I find plenty of candidates in /var/run:

% ls -lrt /var/run
total 98
drwxrwx---  2 root  operator    512 May  2 16:27 lvm
-rw-r--r--  1 root  wheel     46793 May  2 16:28 dev.cdb
-rw-r--r--  1 root  wheel         0 May  2 16:28 syslogd.sockets
srw-rw-rw-  1 root  wheel         0 May  2 16:28 log
-rw-r--r--  1 root  wheel         4 May  2 16:28 syslogd.pid
drwxr-xr-x  2 root  wheel       512 May  2 16:28 named
-rw-r--r--  1 root  wheel      7664 May  2 16:28 dmesg.boot
-rw-r--r--  1 root  wheel         0 May  2 16:28 blacklistd.sockets
srwxrwxrwx  1 root  wheel         0 May  2 16:28 blacklistd.sock
-rw-r--r--  1 root  wheel         4 May  2 16:28 blacklistd.pid
-rw-r--r--  1 root  wheel         3 May  2 16:28 ntpd.pid
-rw-r--r--  1 root  wheel         4 May  2 16:28 powerd.pid
-rw-r--r--  1 root  wheel         4 May  2 16:28 sshd.pid
-rw-r--r--  1 root  wheel         4 May  2 16:28 cron.pid
-rw-r--r--  1 root  wheel      5429 May  2 16:28 rc.log
-rw-r--r--  1 root  wheel         5 May  7 22:47 inetd.pid
-rw-rw-r--  1 root  utmp       1000 May 19 19:02 utmp
-rw-rw-r--  1 root  utmp      18200 May 21 20:15 utmpx

% last -1 reboot
reboot    ~                     Sat May 02 16:28

						Martin Neitzel


Home | Main Index | Thread Index | Old Index