Changeset 810


Ignore:
Timestamp:
Dec 27, 2007 11:40:42 AM (5 years ago)
Author:
jrollins
Message:

runit: a couple of small tweaks

Location:
trunk/runit/servicedirs
Files:
1 deleted
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/runit/servicedirs/dhclient/run

    r808 r810  
    11#!/bin/sh 
    22exec 2>&1 
    3 exec chpst -e env dhclient -d -e $INTERFACES 
     3 
     4# check that the interface is up before running 
     5for iface in $(echo env/INTERFACES) ; do 
     6    ifconfig $iface | grep 'inet addr' > /dev/null || exit 1 
     7done 
     8 
     9exec chpst -e ./env dhclient -d -e $INTERFACES 
  • trunk/runit/servicedirs/ntp/run

    r808 r810  
    11#!/bin/sh 
     2exec 2>&1 
    23. /etc/default/ntp 
    34exec chpst -u ntp /usr/sbin/ntpd -n "$NTPD_OPTS" 
Note: See TracChangeset for help on using the changeset viewer.