Shouldn't /var/run and /var/run/lock point to absolute paths?

I have a setup with my 'var' on a separate partition that causes /var/run and /var/run/lock to point to nothing each time I upgrade the filesystem package and I wonder if this is a bug.
Mounted at /mnt/data is a luks encrypted partion where I keep my home and var as subdirectories. Two symlinks point to them from root:
# ls -al /
lrwxrwxrwx 1 root root 14 Apr 21 2011 home -> /mnt/data/home
lrwxrwxrwx 1 root root 13 Apr 21 2011 var -> /mnt/data/var
Each time I upgrade the filesystems package however I end up with /var/run and /var/lock pointing to  '../run' and ../run/lock', which in my case are the non-existing /mnt/data/run and /mnt/data/run/lock.  I have to delete the symlinks and make them link to the absolute  /run and /run/lock. Is there a reason the symlinks are relative instead of absolute?
[edit]
(this should have been posted in 'Pacman & Package Upgrade Issues' instead of here.)
[edit]
Last edited by rwd (2012-06-24 18:14:08)

Thanks! After using bind mounts and  reinstalling the filesystems package the relative links work. Still I wonder why using bind mounts instead of symlinks is the 'correct' way. The only advantage I see is to have the ability to use mount options, which In my case I don't need.

Similar Messages

  • A .txt in jar,and dont kown the jar's absolute path,how to read it

    I have help.txt and HelpReader class in a jar,and dont kown the jar's absolute path,how to let
    HelpReader class can find help.txt and read it??
    thanks

    Make sure the jar is in your program's classpath. Then use something likeInputStream help = this.getClass().getResourceAsStream("/help.txt");to read the file. Exactly what you would use depends on where in the jar file the help.txt file is located.

  • Difference forecast results between the Batch run and interactive run in DP

    Hi Guru's,
    I am running the forecast in DP with interactive and batch run (with same selection id and same univariate profile) but  i am getting the difference results not both are equal???
    Is it we will not get the same results?? If i tried with only one product and only one location combination then i am getting the same results, But if i took n-n combination then results are wrong.
    Please help me in this regards?
    Thanks,
    Sree

    Hello,
    Thanks for your quick reply, I have checked all the settings and confiring the same - i have maintained the same selection ans same parameters.
    I think so we will not get the same results for batch and interactive run.
    May be batch job it will run by each one by one combination, But in interactive run it will considering the grouping, Please correct me??
    Regards,
    Kotesh.

  • Dreamweaver CS4 and PHP require_once, require, include_once, include absolute paths

    I have a question about Dreamweaver CS4's new functionality that lists required and included files in a second row below the name of the file you are currently editing. It's handy.
    I see that Dreamweaver attempts to list all the included files for a given page so that it is easier to find and edit those files.
    For example.  If I had a HTML document called index.html that linked to a CSS document called style.css, when I open index.html, Dreamweaver CS4 lists style.css in a row below index.html.
    My problem is this.  This new functionality works on absolute paths and relative paths for HTML elements. For example, it can find and link to CSS files regardless of if the src tag is relative  or absolute (/css/style.css)
    REFRESHER: absolute paths start with a "/" as in "/css/style.css" and relative paths do not start with a "/" as in "css/style.css" or "../../css/style.css"
    However, PHP files that are linked to the current page via require, require_once, include, or include_once, only appear to work if you use a relative path.
    So this would work in Dreamweaver:
    require_once('../lib/config.php');
    But this would not
    require_once('/home/matt/mydomain.com/html/lib/config.php');
    As any PHP developer knows, you are never supposed to use relative paths with included or required files.  Especially if your site has multiple levels of sub directories.  Relative paths are relative to the calling php document.  It causes a bunch of problems.  I can explain how if you want.
    How can I tell Dreamweaver that the base directory on my apache web server for my domain...
    /home/matt/mydomain.com/html/
    ... is the equivalent of the base directory on my home computer where dreamweaver accesses my files.
    C:\Users\Matt\Documents\My Websites\mydomain.com\
    So that when I write...
    require_once('/home/matt/mydomain.com/html/lib/config.php');
    ... how can I force dreamweaver understand that "/home/matt/mydomain.com/html/" is the same as "C:\Users\Matt\Documents\My Websites\mydomain.com\" on my home computer. So that way, this new Dreamweaver CS4 submenu feature can find and link to the correct file.
    Essentially, can I define Dreamweaver "include paths" for Dreamweaver to search in if the file I'm trying to include is not in the same directory?

    athensmusician wrote:
    As any PHP developer knows, you are never supposed to use relative paths with included or required files.
    Perhaps you ought to inform the PHP documentation team. All the examples in the PHP manual use relative paths.
    Essentially, can I define Dreamweaver "include paths" for Dreamweaver to search in if the file I'm trying to include is not in the same directory?
    Dreamweaver parses only relative paths in PHP includes. The Related Files feature was a new addition in Dreamweaver CS4, so it's not 100% perfect. Having the ability to define your own include_path for Dreamweaver to parse would be a useful improvement. Make your voice heard by submitting a feature request through the form at https://www.adobe.com/cfusion/mmform/index.cfm?name=wishform.

  • A large program with MANY .vi's loads an onboard program to a 7344 board, later in anothor .vi I load a value into var = 1. and then run Onboard program. Program runs but value of var =1 is not used.

    Onboard program calls the "Load constant to variable.vi" in first block. Same call is made in labview code just before the run program block. the variable in the onboard program ALWAYS defalts to (0). WHY???

    Hello,
    Thank you for contacting National Instruments.
    My guess is that the variable is being overwritten by the first call (Load Constant to Variable VI) of the onboard program. The order of operations for the second VI appears to be the following:
    1) Load Constant to Variable (variable 1 = 10000)
    2) Run the onboard program
    3) Onboard program calls Load Constant to Variable (variable 1 = 0)
    Any value that the first step of the onboard program loads (step 3 above) will overwrite the value loaded just before the onboard program runs (step 1 above).
    I have attached an image of the block diagrams for both VIs I used for testing. The first VI loads an initial value into variable 1, starts program storage, loads position, loads veloci
    ty from variable 1, loads acceleration and deceleration, starts motion, then ends storage. The second program simply loads a new value into the variable then runs the stored program. As the variable value in the second program is modified, the velocity changes appropriately. I tested this with a PCI-7344 in LabVIEW 7.1 with NI-Motion 6.1.3.
    Hopefully this will help you track down the source of the problem.
    Best Regards,
    Jesse D.
    Applications Engineer
    National Instruments
    Attachments:
    OnboardTestImage.JPG ‏36 KB

  • Difference in events in mass run and individual run ?

    Dear all,
    While calculating interest on security deposit using transaction FPI2 , a list of events are triggered ( ex: 2010,2000,2015, 2020 etc)
    But while executing the same in mass run (FPINTM2) only events which are triggered are 1794,1795,1796,0970.
    Why this anamoly?
    Ideally mass run should also call the same set of events apart from the ones required for mass run ?

    If you look closely at these events they are for different purposes. The events you listed for mass activity are for any mass activity, not just interest calculation. They basicall are used for changing, saving mass activity parameters, or affect the intervals etc. They do not change any of the functionality of security deposit interest calculation. The events you listed for the individual transaction are the ones that change the functionality and will definitely be invoked even in mass activity but not the other way around. Mass activity events will not be triggered in the indivudual transaction because they have no relavance there.

  • Difference between normal Costing run and Costing run in Material Ledger

    Hi everybody,
    I have a question i wanted to know why we implement Material Ledger .
    If material ledger is for settling variances on material then that is also possible without material ledger
    Please clear the doubt what is different in ML as compared to normal costing run
    thanks in advance
    Regards
    Deepa

    Costing run is to calculate the std cost estimate of materials and Material Ledger costing run is to calculate Actual cost of production of materials.

  • Authorization object for APP Proposal run and Payment Run

    Dear Friends
    Our client needs to perform APP in the following manner.
    1. Proposal Run will be done by one person.
    2. Payment Run will be done by another person.
    Is there any Authorization object available to control this requirement.
    Pls help me to resolve.
    Brahma

    HI
    Authorisation available for F110 are as below
    Key        Action
    02         Edit parameters
    03         Display parameters
    11         Execute proposal
    12         Edit proposal
    13         Display proposal
    14         Delete proposal
    15         Create payment medium proposal
    21         Execute payment run
    23         Display payment run
    24         Delete payment run payment data
    25         Create payment media of payment run
    26         Delete payment orders of payment run
    31         Print payment medium manually
    Good Luck
    Hari

  • Confusion about VAR='command' and VAR=$(command)

    I've been trying to learn scripting, and multiple sources have told me that 'command' and $(command) are equivalent, but it doesn't work that way for me:
    me, ~ » date=$(date)
    me, ~ » $date
    bash: Mon: command not found
    me, ~ » echo "The date is $date"
    The date is Mon Mar 11 13:39:05 CDT 2013
    me, ~ » date='date'
    me, ~ » $date
    Mon Mar 11 13:39:45 CDT 2013
    me, ~ » echo "The date is $date"
    The date is date
    Can someone explain to me the difference between these two constructions?
    Last edited by the sad clown (2013-03-11 18:48:49)

    deepsoul wrote:
    Uhhh... unless my eyes deceive me, the sad clown did not use any backticks, but used single quotes by mistake.  As pointed out in nagaseiori's post scriptum, this only assigns the word "date" to the variable "date".  The shell expands $date wherever it is on the command line.  In this case, the variable is in the position of the command, so its content, "date" is executed as a command.
    If you use backticks (ASCII 0x60, not 0x27), you get the same thing as for $():
    vs@schizo, ~ > date=`date`
    vs@schizo, ~ > echo "The date is $date"
    The date is Mon Mar 11 23:44:39 CET 2013
    As others have pointed out, backticks have their drawbacks, but I use them anyway .  On a US-layout keyboard, the backtick is on the top left, the same key as the tilde, but without shift.
    Thanks for explaining that.  I was indeed mistaking single quotes ' ' for backticks ` `.

  • Nested repeat Region - run time var PHP

    I have tried several attempts at creating a nested region
    with no luck of sucess
    sql & PHP
    There are 2 record sets
    rsProduct and
    rsCourse
    rsProduct
    SELECT *
    FROM svProductList
    WHERE svProductList.productOrder
    ORDER BY productOrder ASC
    rsCourse
    SELECT *
    FROM trainingCourseTBL
    WHERE trainingCourseTBL.product = colname
    ORDER BY trainingCourseTBL.courseOrder ASC
    colname
    type numeric
    default value -1
    runtim value $row_rsProduct['productOrder']
    Start repeat region 1
    rsProduct.productName
    Start repeat region 2
    rsCourse.course
    END repeat region 2
    END Start repeat region 1
    I would like to set up a run time var for the rsCourse where
    I get the value from the first repeat regions productID
    Can someone point me towards the right direction?

    On 21 May 2007 in macromedia.dreamweaver.appdev, cdembek
    wrote:
    > Can someone point me towards the right direction?
    I don't have time for a long explanation right now, but do a
    web search
    for 'Nested Repeat Region'.
    Joe Makowiec
    http://makowiec.net/
    Email:
    http://makowiec.net/contact.php

  • I have PS 6 and just purchased an iMac and am running OS 10.10.1 (Yosemite).  When i try to Save or Save As a file I get the following message:  Could not save as "Whatever.psd" because this file is locked, you do not have necessary access permissions, or

    I have PS 6 and just purchased an iMac and am running OS 10.10.1 (Yosemite).  When i try to Save or Save As a file I get the following message:  Could not save as "Whatever.psd" because this file is locked, you do not have necessary access permissions, or another program is using the file.  Use the Get Info command in the Finder to ensure the file is unlocked and you have permission to access the file.  If the problem persists, save the document to a different file or duplicate it in the Finder.  Any suggestions?  Thanks.

    Photoshop: Basic Troubleshooting steps to fix most issues
    Look under Troubleshoot User Permissions.
    Gene

  • I have a MacBook Pro 2008 with 17 inch screen. Experiencing a lock up when turning on power to boot up. While booting up it goes to gray screen with Apple logo and disc spinning icon running and doesn't go to my desktop. Any solutions to the problem?

    I have an early 2009 17 inch MacBook Pro that just went on the fritz. When turning on the power it will go into boot up mode to the gray screen with the apple logo, then the disc icon will be running and will continue running, not allowing to proceed to my desk top screen. It's pretty much locked up at this point where I have to do a forced shut down by holding down the power button. I've tried everything that I know of such as taking battery out and pressing power button for 5 seconds and then reinstalling battery. I've cleaned inside of computer with compressed air duster in can as well as other key commands for resets. I've read that this is a common problem with the earlier MacBook Pros. Is this a problem that I can fix or does it have to be taken in for service? Any solutions to the problem would be greatly appreciated. Thanks!

    This could be a software/state problem or a hardware problem.  Here are steps to resolve the former.
    http://support.apple.com/kb/TS2570
    https://discussions.apple.com/docs/DOC-5282

  • I bought my iphone from jordan and it was locked to orange jordan, now i am living at UAE how can run my phone here ?

    i bought my iphone from jordan and it was locked to orange jordan, now i am living at UAE how can run my phone here ?

    Only Orange Jordan can unlock this phone for you, provided that they offer this service. You can't use UAE SIM in this phone or it will get locked.
    If Orange Jordan doesn't offer unlocking, then your best shot is to sell your phone in Jordan and buy a new one from UAE.

  • Moving of /var/run/daemons to /run/daemons

    Hi, just curious here. Why was the location of the "daemons" files representing running daemons moved from /var/run/daemons to /run/daemons ?
    I note this happened around April 9th.
    (http://mailman.archlinux.org/pipermail/ … 00576.html)
    Was there a problem with the original location?
    Just interested.
    Cheers.

    It's because /run is mounted as a tmpfs so it has write access at any time during the boot process which isn't the case with /var. It fixes some problems.

  • Mac Mini locks up and fan runs on high

    I just bought a new (refurbished) 2012 Mac Mini from Apple.  It's the i7 quad 2.3 version.
    I haven't done any power using at all.  I bought it to start some home recording as a musician.
    I've owned it a week as of today and it's locked up twice with the spinning ball of death while doing nothing.  Both times I only noticed after hearing the fan running really loudly for awhile.  It wasn't being used either time, just sitting idle.  I heard the fan, walked over and tried to click on something with the mouse and the SPBOD popped up and stayed for 20+ minutes.  Finally just had to shut it down with the power button.
    I can't keep this thing if this is going to be a weekly occurrence.  Does it sound like a defective unit?
    It has the server option which I stupidly clicked on and configured when setting it up.  I don't need a server and didn't really know why I activated it.  Now as I understand it, there's no way to "undo" it or remove the software easily.  Could the server app be the issue?

    The warranty entitles you to complimentary phone support for the first 90 days of ownership.
    If you bought the product in the U.S. directly from Apple (not from a reseller), you have 14 days from the date of delivery in which to exchange or return it for a refund. In other countries, the return policy may be different. If you bought from a reseller, its return policy applies.

Maybe you are looking for

  • Question regarding export and import of Hyperion Security during upgrade

    Hi Guys, We are upgrading Essbase, Integration Services from 7x to 9x which are utilizing Hyperion Hub and we are going to follow the method of uninstalling 7x and reinstalling 9x components. Now my question is, what is the best way of transferring s

  • Some javascript code does not work out in a .jspx page

    To the experienced: I am trying to improve some pages in my application. In one of the pages, there are only two elements in the form: an input box (for user to put in his username) and a submit button. What I am trying to do are: 1. Make the input b

  • Ipad says need "activation lock" PLEASE HELP

    I bought my ipad from a pawn shop last year. I restored it yesterday because I had a lot of storage on it. I'm trying to activate my ipad and it's not letting me. It is saying that I need to use the account that was set up with the ipad. I don't know

  • SNIP 3 handling in BizTalk

    Hi ALL, I need to configure SNIP 3 error handling in BizTalk. I heard that Biztalk will do snip 1-2 by default. Do you have any codes/sample codes for capturing snip 3 in Biztalk ?. OR please suggest the steps to do this. am new to biztalk ,(step by

  • Fluctuation in reading millivolt using AI 600 and cFP 2000

    I have an application based in data acquisition.cFP 2000 and AIO 600 are the hardwares used and im giving 16.2 millivolt from a battery powered millivolt source.If i am reading the millivolt using a digital multimeter it shows constant reading of 16.