Start systemd service only after br0 receives IP address?

I have a fairly complex setup involving  br0, hostapd service and a VM managing DHCP for br0.
br0 receives IP from a pfSense running in a VM, but it takes some time before VM boots and assigns IP to br0 once the host system has started.
The hostapd service must start only after the IP has been assigned to br0, otherwise it will not work properly. Therefore, I am looking for a way to start it only after that IP has been assigned.
I cannot use something like
After=network.target
because it would make it start way to early.
Any ideas welcome.

tomk wrote:Try 'network-online.target', works here for mounting my NFS shares after the network comes up.
This won't help because AFAIK it will start it as soon as eth0 gets an IP, which is about 1 minute earlier than br0 getting an IP.

Similar Messages

  • Starting OEM Windows Service only after database is ready

    I have a Windows Service program (written in vb.net) that accesses an Oracle database via the Oracle ODBC driver. It runs fine as long as the database comes up first. In some installations, however, the Oracle system is not ready to connect when Windows auto-starts my service.
    I have tried using both the database service name and the TNS_Listener... as a value in a DependsOnService key in the registry for my service, but it seems to have no effect. Judging by the event logs, Oracle continues to spin out "processes" for something over 30 seconds, which appear after my service is started regardless of what I do with the DependsOnService parameter.
    How can I make Windows auto-start my service only after Oracle is ready?

    Sure, although "net start" is a Windows thing, not an Oracle thing. Here is the contents of my startup.cmd file.
    net start "OracleOraDb10g_home1TNSListener"
    net start "OracleServicePROD"
    net start "OracleDBConsoleprod"
    net start "OracleCSService"
    net start "OracleOraDb10g_home1iSQL*Plus"
    pause
    The thing in quotes is the service name found in the Windows Services panel. In order to use this method you should set the services you wish to control as Manual startup (instad of Automatic). You can do that by right clicking on a service name/Properties/Startup Type.
    To do a shutdown, I reverse the order of the above script and of course change the starts to stops.

  • Starting BPEL services only

    Hi all,
    We are using SOA Suite 10.1.3.3 server for our project. I am starting and stopping the server with the command-line using command :
    <prompt>opmnctl startall --- To start all the services
    and
    <prompt>opmnctl stopall --- To stop all the services.
    In our project, we are only using BPEL components.
    By starting the whole services, it consumes a lot of system resources. So we want to only start the services which are directly or indirectly related to BPEL (not ESB,OWSM).
    Can anybody suggest a possible solution?
    Thanks in advance,
    Regards,
    Abhi...

    Hi gurus,
    Any solution for the issue??
    Thanx in advance.
    Regards,
    Abhi...

  • Start systemd --user once after first login, not per session?

    Hey guys,
    So I've been toying around with using systemd to manage user daemons and some oneshot processes, it seems like it could be really nice
    Here's what I'm thinking I would like to do:
    I would have two user targets, `console.target` and `graphical.target`.
    The console target will start things like pulseaudio, ssh-agent (envoy), transmission, stuff like that.
    The graphical target will start xorg and then other things like the WM, set the wallpaper.. you get the idea. Obviously the graphical target will want the console target.
    Now, the part I wanted to get some feedback on is this: I would like a systemd --user instance to only be started once after my first login, not once per session.
    So for example, I login from vt1 and it brings systemd --user up to the graphical.target. Then if I later SSH in from somewhere, it won't start a new systemd --user session (Ie, won't start pulse-audio, transmission-daemon, etc).
    However, if I haven't logged into my machine yet and I SSH in, it will start up systemd --user and will start the console.target. If I then later login via vt1 it will see that there's already a systemd --user session started and start the graphical.target
    Does this make sense? Is it a bad idea?

    You could make a column in the database, and when the
    information is set (emailed) make the value to be 0, then when they
    first register use a IF recodset("column_name") = 0 Then
    reponse.redirect("filloutpage.asp") end if, then when they fill out
    the info have a hidden form field thats updates the value to 1. on
    the login page after the first if make another IF
    recordset("column_name") = 1 Then response.redirect("index.asp")
    end if.
    i have forms that have three different redirect based on user
    input, and you could do the same thing you could add the one for
    the first time to dw made code, here is an example, you could
    change the request.form to a recordset value and it will work.
    If Request.Form("select") = "Self" Then
    MM_editRedirectUrl = "FridaySchedule.asp"
    Response.Redirect(MM_editRedirectUrl)
    End IF
    If Session("MM_AdminEdit") = "True" Then
    MM_editRedirectUrl = "FridayScheduleAdmin.asp"
    Response.Redirect(MM_editRedirectUrl)
    End IF
    MM_editRedirectUrl = "FridayScheduleDept.asp"
    If (Request.QueryString <> "") Then
    If (InStr(1, MM_editRedirectUrl, "?", vbTextCompare) = 0)
    Then
    MM_editRedirectUrl = MM_editRedirectUrl & "?" &
    Request.QueryString
    Else
    MM_editRedirectUrl = MM_editRedirectUrl & "&" &
    Request.QueryString
    End If
    End If
    Response.Redirect(MM_editRedirectUrl)

  • Location service only after initial Internet connection possible?

    I have been to Budapest, Hungary last year. My iPod Touch 2G could not find my position although there were tons of WIFI networks around. I found an open hotspot in a café which was run by the town council. After connecting to it (and later without any Internet connection again) iPod found my possition at any place in the town. It was the same in another (German) town: I needed a short internet connection via a free hotspot to get the location service work.
    Does the iPod download some sort of location data when I am far away from home?

    Yes, you'll need to join a WiFi network before the location service will work properly. See this article for more interesting info about location service. http://support.apple.com/kb/HT1975
    ...Notes:
    iPod touch only uses Wi-Fi for Location Services (if a Wi-Fi network is available)...

  • OBIEE Start/Stop Services failed(After LDAP Configuration)

    Hi ,
    We made some changes(that is we have added new OID
    and configured the new OID based upon the Oracle BI security guide which is in Oracle Site
    ) to the LDAP configuration in OBIEE web console and it prompted for a restart of the OBIEE services . when we tried restarting the services we are not able to stop all the services . Please find the attached log files .
    Note:
    1.unable to kill the process ID
    which is releated to OBIEE 11.1.1.6.0 services..
    2.We have follwed the section 3 in the below link to configure the LDAP : http://docs.oracle.com/cd/E23943_01/bi.1111/e10543/toc.htm.
    Please find the below error details in short form and kindly find the attahced file(file name) for more details
    Error:
    Caused By: oracle.security.jps.service.igf.IGFException: JPS-02597: You configured a custom Authentication Provider or WLS generic LDAPAuthenticator, which the libOvd can not recognize. Supply the idstore.type property in jps-config.xml file, or use a specific WLS LDAP Authentication provider that matches your LDAP server instead of a generic one.
    at oracle.security.jps.internal.api.identitystore.IdentityStoreConfigurationUtil.checkIdStoreTypeLater(IdentityStoreConfigurationUtil.java:819)
    at oracle.security.jps.internal.api.identitystore.IdentityStoreConfigurationUtil.getLibOvdLdapPushData(IdentityStoreConfigurationUtil.java:524)
    at oracle.security.jps.internal.igf.ovd.OvdIGFServiceProvider$1.run(OvdIGFServiceProvider.java:232)
    at oracle.security.jps.internal.igf.ovd.OvdIGFServiceProvider$1.run(OvdIGFServiceProvider.java:229)
    at java.security.AccessController.doPrivileged(Native Method)
    Truncated. see log file for complete stacktrace
    >
    <Jan 29, 2013 6:39:05 AM CST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to FAILED>
    <Jan 29, 2013 6:39:05 AM CST> <Error> <WebLogicServer> <BEA-000383> <A critical service failed. The server will shut itself down>
    <Jan 29, 2013 6:39:05 AM CST> <Notice> <WebLogicServer> <BEA-000365> <Server state cha
    Error Codes
    Problem Category/Subcategory
    BI EE Platform Administration/Administration Tool
    Uploaded Files
    File: nohup.zip:134848
    Template Question Responses
    1) ### Admin Tool version ###
    2) Are you running Oracle Business Intelligence Enterprise Edition using virtualization or partitioning technologies (for example, VMWare) ?
    No
    3) If yes, please provide the product used and its version.
    4) ### Documentation Used ###
    5) ### Impact on Business ###
    Edited by: 919942 on Jan 31, 2013 5:10 AM

    "JPS-02597: You configured a custom Authentication Provider or WLS generic LDAPAuthenticator, which the libOvd can not recognize. Supply the idstore.type property in jps-config.xml file, or use a specific WLS LDAP Authentication provider that matches your LDAP server instead of a generic one."
    Looks like the config you entered was a tad off. Any chance you can roll back by restoring the original files from before the change?
    $FMWH/user_projects/domains/yourdomain/config/config.xml
    $FMWH/user_projects/domains/yourdomain/config/fmwconfig/jps-config.xml
    In the config.xml, inside the <realm> tag yo ushould find your authenticaiton providers and there's two important things for your new one to check:
    1.) xsi-type="wls:..." <-- This should be your OID type rather than a generic (or wrong) one
    2.) If you're not 100% sure about the config or don't want to immediately shut out native WLS users or want to retain them (both OID and WLS LDAP considered valid), then PLEASE make sure that you run your new authenticator with <sec:control-flag>SUFFICIENT</sec:control-flag> and don't make it REQUIRED since otherwise you won't be able to bring anything up anymore if a single parameter in the authenticator config is off...
    Also, check out what Tony wrote together a while back: http://www.peakindicators.com/index.php/knowledge-base/115-oracle-bi-11g-security-troubleshooting
    Update:
    Should have read the error message more carefully...looks like you actually just slipped by one line in the authenticator config and chose "OracleVirtualDirectory" instead of "OracleInternetDirectory" since it tries to use the libOvd rather than the OID one.
    Edited by: Christian Berg on Jan 31, 2013 2:58 PM

  • [invalid] Run systemd service after specific device is initialized

    Hi.
    Is there any way to run systemd service only after specific device is initialized/kernel module is loaded?
    The task I'm trying to solve is applying trackpoint speed and sensitivity settings on boot in my X220.
    Service code (trackpoint.service) is quite simple
    [Unit]
    Description=Trackpoint configuration
    [Service]
    Type=oneshot
    EnvironmentFile=/etc/conf.d/trackpoint.conf
    ExecStart=/bin/sh -c 'echo ${sensitivity} > /sys/devices/platform/i8042/serio1/serio2/sensitivity'
    ExecStart=/bin/sh -c 'echo ${speed} > /sys/devices/platform/i8042/serio1/serio2/speed'
    [Install]
    WantedBy=graphical.target
    The issue is that trackpoint.service gets executed before trackpoint device gets initialized and thus fails.
    Jun 14 23:12:10 xi sh[414]: /bin/sh: /sys/devices/platform/i8042/serio1/serio2/sensitivity: No such file or directory
    Jun 14 23:12:10 xi systemd[1]: Unit trackpoint.service entered failed state.
    Jun 14 23:12:18 xi kernel: psmouse serio2: trackpoint: IBM TrackPoint firmware: 0x0e, buttons: 3/3
    Jun 14 23:12:18 xi kernel: input: TPPS/2 IBM TrackPoint as /devices/platform/i8042/serio1/serio2/input/input13
    What have I tried already
    1. Specified systemd-modules-load in After= and Requires= directives and added psmouse module to /etc/modules-load.d
    2. Tried path activation (perhaps, I did it wrong) by creating i8042.path
    [Path]
    PathExists=/sys/devices/platform/i8042
    Unit=trackpoint.service
    However, this changed nothing.
    I don't know what else should I try.
    Please suggest solution for this.
    Thanks in advance.
    Last edited by eDio (2013-06-15 13:28:36)

    Thank you very much.
    I've finally managed this to work
    $ cat /etc/udev/rules.d/10-trackpoint.rules
    SUBSYSTEM=="input", KERNEL=="event13", ACTION=="add", RUN+="/usr/bin/trackpoint_apply"
    $ cat /etc/conf.d/trackpoint.conf
    speed=255
    sensitivity=255
    $ cat /usr/bin/trackpoint_apply
    #!/usr/bin/env sh
    . /etc/conf.d/trackpoint.conf
    /usr/bin/echo $speed > /sys/devices/platform/i8042/serio1/serio2/sensitivity
    /usr/bin/echo $sensitivity > /sys/devices/platform/i8042/serio1/serio2/speed

  • How come when I try to download the latest version of Itunes, this pops up, "Service 'Apple Mobile Device' failed to start. Verify that you have sufficient priveleges to start system services. What do I do??

    Read my question above this!

    Apple Mobile Device not Starting
    ·  Windows Vista or Windows 7
    In the Start SearchServices.
    In the Programs
    Select Apple Mobile DeviceStop the service
    After the service has stopped, click Start the service.
    After the Apple Mobile Device service has started again, do your download again.

  • I'm trying to re-install itunes. I keep getting an error that says "Apple Moble device failed to start" Verify you have sufficiant privlidges to start system services. Anyone have an idea how to fix this?

    I'm trying to re-install Itunes. I keep getting an error message that says....
    "Apple Moblie Device failed to start, Verify you have sufficiant privileges to start system services"
    Does anyone know what this means, or how to fix?
    Thanks

    Hello pongo19,
    Thanks for using Apple Support Communities.
    For more information on this, take a look at:
    How to restart the Apple Mobile Device Service (AMDS) on Windows
    http://support.apple.com/kb/ts1567
    Close iTunes and disconnect the iPhone, iPad, or iPod touch.
    Click the Windows Start button .
    In the Start Search field type Services.
    In the Programs section of the search results, Click "Services".
    Select Apple Mobile Device and click Stop the service as shown below:
    After the service has stopped, click Start the service.
    After the Apple Mobile Device service has started again, open iTunes and connect the device.
    Set the Apple Mobile Device Service Startup type to Automatic
    Remove and reinstall iTunes and AMDS
    Best of luck,
    Mario

  • [SOLVED] systemd : services failing to start on boot

    I have removed sysvinit completely as per the systemd wiki pages.
    I don't usually re-boot very often so I'm not sure exactly when the problem started.
    I only noticed this problem about 4 or 5 days ago.
    But now whenever I reboot my machine 2 services fail consistently.
    adsl.service
    colord.service
    They both start flawlessly once I can log in at a console.
    I'm using kde and in the last couple of days, while trying to fix my problem, the kdm service has failed to start a couple of times too - saying there is no X server.
    Before switching to systemd I never had any of these problems using the old rc.conf method. My DAEMONS array had the adsl service start after the network service.
    I need some help and advice to find out what is causing the problem and how to fix it.
    Last edited by bhrgunatha (2012-10-25 05:44:22)

    Thanks. That seems plausible. So I've been snooping at the journal.
    journalctl -ab
    Oct 25 17:06:13 starch systemd[1]: Started Trigger Flushing of Journal to Persistent Storage.
    Oct 25 17:06:14 starch systemd[1]: Started Recreate Volatile Files and Directories.
    Oct 25 17:06:14 starch systemd[1]: Starting System Initialization.
    Oct 25 17:06:14 starch systemd[1]: Reached target System Initialization.
    Oct 25 17:06:14 starch systemd[1]: Starting CUPS Printing Service Sockets.
    Oct 25 17:06:14 starch systemd[1]: Listening on CUPS Printing Service Sockets.
    Oct 25 17:06:14 starch systemd[1]: Starting Console System Startup Logging...
    Oct 25 17:06:14 starch systemd[1]: Starting Restore Sound Card State...
    Oct 25 17:06:14 starch systemd[1]: Starting CUPS Printer Service Spool.
    Oct 25 17:06:14 starch systemd[1]: Started CUPS Printer Service Spool.
    Oct 25 17:06:14 starch systemd[1]: Starting D-Bus System Message Bus Socket.
    Oct 25 17:06:16 starch ntpd[381]: ntpd [email protected] Tue Aug 21 15:06:24 UTC 2012 (1)
    Oct 25 17:06:16 starch ntpd[413]: proto: precision = 0.156 usec
    Oct 25 17:06:17 starch ntpd[413]: ntp_io: estimated max descriptors: 1024, initial socket boundary: 16
    Oct 25 17:06:17 starch ntpd[413]: Listen and drop on 0 v4wildcard 0.0.0.0 UDP 123
    Oct 25 17:06:18 starch ntpd[413]: Listen and drop on 1 v6wildcard :: UDP 123
    Oct 25 17:06:18 starch ntpd[413]: Listen normally on 2 lo 127.0.0.1 UDP 123
    Oct 25 17:06:18 starch ntpd[413]: Listen normally on 3 lo ::1 UDP 123
    Oct 25 17:06:18 starch ntpd[413]: peers refreshed
    Oct 25 17:06:18 starch ntpd[413]: Listening on routing socket on fd #20 for interface updates
    Oct 25 17:06:18 starch dbus[384]: [system] Activating systemd to hand-off: service name='org.freedesktop.ColorManager' unit='colord.service'
    Oct 25 17:06:18 starch dbus[384]: [system] Successfully activated service 'org.freedesktop.systemd1'
    Oct 25 17:07:03 starch dbus[384]: [system] Successfully activated service 'org.freedesktop.ColorManager'
    Oct 25 17:07:03 starch dbus[384]: [system] Activating via systemd: service name='org.freedesktop.ColorManager' unit='colord.service'
    Oct 25 17:07:03 starch dbus[384]: [system] Successfully activated service 'org.freedesktop.ColorManager'
    Oct 25 17:07:04 starch kernel: r8169 0000:02:00.0: eth0: link down
    Oct 25 17:07:03 starch systemd[1]: Starting Manage, Install and Generate Color Profiles...
    Oct 25 17:07:03 starch systemd[1]: Started Manage, Install and Generate Color Profiles.
    Oct 25 17:07:03 starch systemd[1]: colord.service: main process exited, code=killed, status=6
    Oct 25 17:07:03 starch systemd[1]: Unit colord.service entered failed state.
    Oct 25 17:07:04 starch kernel: r8169 0000:02:00.0: eth0: link down
    Oct 25 17:07:04 starch kernel: IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
    Oct 25 17:07:04 starch kernel: PPP generic driver version 2.4.2
    Oct 25 17:07:04 starch cupsd[380]: Unknown directive DefaultAuthType on line 26.
    Oct 25 17:07:04 starch kernel: r8169 0000:02:00.0: eth0: link up
    Oct 25 17:07:04 starch kernel: IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
    Oct 25 17:07:04 starch pppoe-start[382]: TIMED OUT
    Oct 25 17:07:04 starch kernel: NET: Registered protocol family 24
    Oct 25 17:07:04 starch pppoe-start[382]: /usr/sbin/pppoe-start: line 193: 394 Terminated $CONNECT "$@" > /dev/null 2>&1
    That seems to confirm your theory.
    eth0 link is not up when attempting to start colord and adsl
    So the $64,000 question:
    How do I defer them until eth0 is ready?
    Or how can I force the eth0 link to be up before colord or adsl try to use it?
    Last edited by bhrgunatha (2012-10-25 01:33:36)

  • [solved] systemd services not starting at boot (or at all)

    On my router, some systemd services fail to start at boot.
    The services are :
    adsl (pppoe connetction on the wan interface)
    shorewall (funny again for a router)
    logind (brings up only tty1, and not the others with a 'timeout' error)
    adsl starts fine manually after booting up
    the others don't work, I have to launch shorewall with the old sysvinit rc script (and it works)
    I really don't know, what happened to logind...
    Last edited by scar (2012-11-30 10:20:44)

    cups: avahi client failed
    adsl: timeout (ppp0 running on eth0, the service did not found eth0)
    shorewall: did not work by the systemctl command, only with the old rc script
    I'm not sure if there was an error with logind, but I've had only tty1, not all the others (I have not touched /etc/inittab)
    since this was a very old install (but up to date), I've decided to reinstall the whole thing,
    Everything works
    (But reinstalling does not solve any problem, it erases the problems...)
    Last edited by scar (2012-11-30 10:21:20)

  • Tried to download and reinstall iTunes after file corrupted. Download proceeds, but does not complete. Message states "Apple mobile device failed to start. Verify that you have sufficient privileges to start system services."

    My iTunes became corrupted. I tried to upgrade to a new version, but things only got worse. Some of the error messages I received:
    APSDaemon - Unable to locate component
    This application has failed to start because MSVCR80.dl was not found. Rinstalling the application may fix this problem.
    So, I deleted my downloads and past attempts and any .dl files I had and tried again. Now I get this message:
    Today:  Apple Mobile Device failed to start. Make sure you have sufficient privileges to start system services.

    Hi ahhan13,
    Welcome to the Support Communities!
    The article below may be able to help you with this.
    Issues installing iTunes or QuickTime for Windows
    http://support.apple.com/kb/HT1926
    How to restart the Apple Mobile Device Service (AMDS) on Windows
    http://support.apple.com/kb/TS1567
    Cheers,
    - Judy

  • HT5654 Trying to install the latest update for itunes...error received "service apple mobile device failed to start.  verify thay you have sufficient priveleges to start system services"...?  I have unistalled and tried to reinstall???

    Trying to install the latest update for itunes...error received "service apple mobile device failed to start.  verify thay you have sufficient priveleges to start system services"...?  I have uninstalled and tried to reinstall???

    Hello Kimberly0914,
    It sounds like you have tried to launch iTunes after a recent update due to this error message, and you cannot install iTunes after uninstalling. I recommend the troubleshooting from the following article to help you named:
    Issues installing iTunes or QuickTime for Windows
    http://support.apple.com/kb/ht1926
    Then download and install iTunes with this link:
    http://www.apple.com/itunes/download/
    Thank you for using Apple Support Communities.
    Cheers,
    Sterling

  • When installing itunes I received the following error "service Apple Mobile Device failed to start, verify you have sufficient privileges to start system services"

    when installing itunes I received the following error "service Apple Mobile Device failed to start, verify you have sufficient privileges to start system services"

    Me too. And if someone comes back on here with the same solution of "uninstall and re-install", please provide further advice after you have done that 3 times and the program still has the same problem in addition to the "failure to load the C runtime library" R6034 issue. I have removed itunes 3 times however I do not have permission to remove the program files/apple file and the uninstall doesn't remove it.
    You're not alone buddy.
    Frustrated.

  • When I receive emails why doesn't the mail icon on the bottom of the home page indicate I have mail.  Only after I go into my mail do I find out I have mail.  My Blackberry always indicated when I received new emails.

    I was wondering if the mail icon on the bottom of the home screen ever indicates that I have mail.  It isn't indicating and only after I open up my mail does it show that I have received emails.  Is there any type of indicator that is supposed to be on the mail icon that shows I have mail?  Thanks

    Mail starts up wherever you last left it, or should do without any changing of settings.

Maybe you are looking for

  • Why doesn't the desktop 'snap to grid' work with Snow Leopard?

    I've recently upgraded my OS to Snow Leopard and I do a lot of work with photo folders which I keep organized on my desktop. Since upgrading the 'snap to grid' function in the view options of the desktop preferences has stopped working. For some reas

  • Smart data value display ? BUG sqldeveloper EA2 but works in plsqldeveloper

    Hi, The below mentioned debug facility works in plsqldevloper but the same does not work in sqldeveloper both on 10g and 11g Oracle Database Has anyone enocuntered this bug as smart data value / tooltip not displayed in sub proc while debug in sqldev

  • SM13 error clean up job

    Hi - SM13 update errors needs to be cleaned up regularly. Is there any standard program does this? Thanks, Raj

  • Starting with a cocoa app/plugin on mac - How?

    Hi, I want to start with an new app/plugin for Mac OS X. For this I need to get the image data out of Photoshop. Basicly I just need an thumbnail of what the user is seeing and then pipe this to my application. Is that possible and how should I start

  • Trial Version CS5

    I am trying to download the trail version of CS 5. The Adobe Download Assistanct page comes up.  I log in.  Then nothing happens.  I have turned my firewall off, and started over; but noghting happens. Any suggestions? Thanks Elaine