On 10/02/2013 17:53, Dale wrote:
> Alan McKinnon wrote:
>> It's probably better to leave the symlink in place for now. What
>> happens when the user installs a package they have never had before
>> and that package uses /var/run? It will make a directory which isn't
>> what you want. Better to leave the symlink in place and train your
>> eyes to ignore the elogs (something we humans are extremely good at) 
> 
> I have a question.  On my rig, /var/run does not appear to be a link to
> /run.  For giggles:




You should re-read the elog you got when /run was created and do what it
says

:-)











> 
> root@fireball / # ls -al /var/run/
> total 132
> drwxr-xr-x 17 root    root     4096 Feb 10 01:46 .
> drwxr-xr-x 16 root    root     4096 Feb  8 09:28 ..
> drwxr-xr-x  2 avahi   avahi    4096 Feb  8 14:18 avahi-daemon
> -rwx------  1 root    root        0 Feb  8 14:18 blocked
> -rw-r--r--  1 root    root        5 Feb 10 01:46 chronyd.pid
> drwxr-xr-x  2 root    root     4096 Feb  8 18:07 console
> drwxr-xr-x  2 root    root     4096 Feb  8 18:07 ConsoleKit
> -rw-r--r--  1 root    root        6 Feb  8 14:18 cron.pid
> drwxr-xr-x  3 root    lp       4096 Feb  9 15:38 cups
> drwxr-xr-x  2 root    root     4096 Feb  8 14:18 dbus
> -rw-r--r--  1 root    root        6 Feb  8 14:18 dbus.pid
> drwxr-xr-x  4 root    root     4096 Jan  2 01:25 dhcpcd
> -rw-r--r--  1 root    root        6 Feb  8 14:18 gpm.pid
> -rw-r--r--  1 root    root        5 Feb  8 14:18 http-replicator.pid
> -rw-r--r--  1 root    root        6 Feb  8 18:06 kdm.pid
> drwxr-xr-x  2 mysql   mysql    4096 Jan 30 15:26 mysqld
> drwxr-xr-x  4 root    root     4096 Dec 11  2010 pm-utils
> -rw-------  1 root    root      512 Jan 12  2012 random-seed
> -rw-r--r--  1 root    root        6 Feb  8 14:18 rsyncd.pid
> drwxrwxr-x  3 root    utmp     4096 May 10  2012 screen
> -rwx------  1 root    root        0 Oct 27 17:41 sessiondb.dir
> -rwx------  1 root    root     1024 Feb  8 14:18 sessiondb.pag
> -rw-------  1 root    root        6 Feb  8 14:18 smartd.pid
> -rw-r--r--  1 root    root        6 Feb  8 14:18 sshd.pid
> srwxr-xr-x  1 root    root        0 Feb  8 14:18 syslog-ng.ctl
> -rw-r--r--  1 root    root        6 Feb  8 14:18 syslog-ng.pid
> drwxr-xr-x  2 tor     tor      4096 Nov 19 02:27 tor
> drwxr-xr-x  2 root    root     4096 Oct 27 17:40 udev-configure-printer
> drwx------  2 root    root     4096 Oct  3  2011 udisks
> -rw-r--r--  1 root    root        6 Feb  8 14:18 upsmon.pid
> drwxr-xr-x  2 uptimed uptimed  4096 Jan 31 06:15 uptimed
> -rw-rw-r--  1 root    utmp    10368 Feb  8 18:07 utmp
> drwxr-xr-x  2 root    root     4096 Feb  8 18:07 xauth
> drwxr-xr-x  4 root    root     4096 Feb  8 18:06 xdmctl
> root@fireball / # ls -al /run/
> total 4
> drwxrwxrwt  7 root root  140 Feb  8 07:49 .
> drwxr-xr-x 23 root root 4096 Feb  9 15:27 ..
> drwxr-xr-x  2 root root   80 Dec  6 15:42 blkid
> drwxr-xr-x  3 root uucp   60 Sep 23 10:17 lock
> drwxr-xr-x 14 root root  360 Feb  8 14:18 openrc
> drwxr-xr-x  7 root root  180 Feb  9 17:27 udev
> drwx------  2 root root   40 Feb  8 07:49 udisks2
> root@fireball / # ls /var/
> total 76
> drwxr-xr-x 16 root root  4096 Feb  8 09:28 .
> drwxr-xr-x 23 root root  4096 Feb  9 15:27 ..
> drwxr-xr-x  2 root root  4096 Feb  8 12:05 account
> drwxr-xr-x 12 root root  4096 Dec 20 11:38 cache
> drwxr-xr-x  5 root root  4096 Feb  9 14:25 db
> drwx------  3 root root  4096 Feb  8 13:32 empty
> -rw-r-----  1 root root     0 Apr 12  2012 hp-toolbox.lock
> drwxr-xr-x 32 root root  4096 Feb  7 23:57 lib
> drwxrwxr-x  5 root uucp  4096 Feb 10 03:10 lock
> drwxr-xr-x 14 root root  4096 Feb 10 03:10 log
> drwx------  2 root root 16384 Mar 17  2012 lost+found
> lrwxrwxrwx  1 root root    15 Feb  8 09:28 mail -> /var/spool/mail
> drwxr-xr-x 17 root root  4096 Feb 10 01:46 run
> drwxr-xr-x  6 root root  4096 Dec 11  2010 spool
> drwxr-xr-x  2 root root  4096 Nov 17  2010 state
> drwxrwxrwt 13 root root  4096 Feb  9 15:23 tmp
> drwx------  4 root root  4096 Jun 28  2012 .Trash-0
> drwxr-xr-x  3 root root  4096 Dec 11  2010 www
> root@fireball / #
> 
> See, the contents of those two are different and the listing for /for
> shows it is not a symlink.  Should I fix this manually or leave it as is? 
> 
> Dale
> 
> :-)  :-) 
> 


-- 
Alan McKinnon
[email protected]


Reply via email to