Results 1 to 1 of 1

Thread: writing an upstart job dependent on SysV script

  1. #1
    Join Date
    Sep 2010
    Location
    York, UK
    Beans
    12
    Distro
    Ubuntu 10.04 Lucid Lynx

    writing an upstart job dependent on SysV script

    Hi,
    I have written an upstart configuration file for a job that depends on bind9 running. Bind9 doesn't have an upstart job, nor does it emit an init event, so I can't figure out the correct `start on` stanza which I need.

    One possibility is to add a 'sleep X' line to the pre-start or script stanzas, but that seems a dirty hack.

    How else though can I make this upstart job start only after bind9? Another option is to add a line to the /etc/init.d/bind9 file:-
    Code:
    initctl emit bind9
    However, modifying bind9's init.d script isn't very portable, and would be a hack outside of the responsibility of my program.

    Any suggestions??

    TIA,
    Alex

    EDIT: Things I've tried:-
    Code:
    start on (net-device-up and started smbd)   # starts too early.
    start on started rc  # still too early.
    start on runlevel [2] # again, still too early...
    start on (started bind9 or started named) # neither of these events exist according to `initctl list`
    Last edited by spleach; September 25th, 2011 at 02:40 PM.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •