RE: /sbin/ifup-local does not work on boot only on restart

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> Are they any messages in the log about this? From everything 
> I have read in the scripts, and from the way "service network 
> restart" works, it should work. Running "service network 
> restart" runs the stop code, and then runs the start code.
> 
Mikkel

Problem solved.

It wasn't a problem with ifup-local. It was the fact that syslog had not
started. I've modified the scripts to log to /var/log/ifup-local.log and
it's all working fine.

Because syslog had not started logger was not logging it correctly. I've
switched to the following method of logging and I'm can now log the
correct operation of the ifup-local script.


--------------------------------------------------------------------------
-----------
#!/bin/bash

case "$1" in
eth0)
    /bin/echo  "`date`:  ifup-local::  Interface -> ${1} " >>
/var/log/ifup-local.log
    ;;

wan0)
    /bin/echo  "`date`:  ifup-local::  Interface -> ${1} " >>
/var/log/ifup-local.log
    ;;

*)
    /bin/echo  "`date`:  ifup-local::  Unhandled Interface -> ${1} " >>
/var/log/ifup-local.log
esac
--------------------------------------------------------------------------
-------------

Thanks for your help you suggestions got me looking in the right direction
to solve the problem.

Regards John


-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux