Sponsored Content
Top Forums UNIX for Advanced & Expert Users start a process at boot up time Post 32844 by Neo on Sunday 8th of December 2002 06:31:59 PM
Old 12-08-2002
/etc/ppp/ip-up

The scripts in /etc/ppp/ip-up can be modified to perform work after an ip address is acquired. From the pppd manpage:

Code:
/etc/ppp/ip-up

A program or script which is executed when the link is available for sending and receiving IP packets  (that  is, IPCP has come up).  

It is executed with the parameters

interface-name tty-device speed local-IP-address remote-IP-address ipparam

 

10 More Discussions You Might Find Interesting

1. Programming

get process start time

Hi all, I like to know how can I get currenlty running process start time and date , I know only porcess id in solaris and hp-ux and what is command to get same using ps with switch. Thanks Naeem (1 Reply)
Discussion started by: naeem ahmad
1 Replies

2. UNIX for Advanced & Expert Users

to get process start date and time

what is command to get same using ps with switch. I know process id, by specify process id. It should work on solaris and hp-ux I will be happy if for both different commands. (2 Replies)
Discussion started by: naeem ahmad
2 Replies

3. UNIX for Advanced & Expert Users

start time of a terminated process

Hi, I have a shell script which i am running. I want it's starting time (the time when the execution of the shell script started) in another shell script. Note that the process has already terminated when i need it's starting time.... else i could have used ps -f | cut -d" " -f5... But that's... (2 Replies)
Discussion started by: k_chaaya
2 Replies

4. Ubuntu

How can I automatically start a daemon at boot time.

Hi masters, I am still learning trades in kernel. I am trying to learn the basic of daemon programming. Can any one tell me how can I start a daemon automatically during boot up. I will be greatfull if anyone post some example code to the above task. Also what are... (3 Replies)
Discussion started by: iamjayanth
3 Replies

5. HP-UX

HP UX start process at boot time

When I get start program at boot I read which run level /sbin/rcx.d runlevel=0.....x only read directory which directory name has UpperCase 'S' is not enough someone says that I need to reference another file which file I need to reference 1)/etc/rc.config.d/all file which parameter... (4 Replies)
Discussion started by: alert0919
4 Replies

6. Linux

Process start time not showing correct time

Process start time is not showing the correct time: I had started a process on Jun 17th at 23:30:00. Next day morning when I run the command "ps -ef | grep mq", the process is showing the start date of Jun 17th but the start time is 00:16:41 Day/Date is setup correctly on the server. It... (2 Replies)
Discussion started by: hemangjani
2 Replies

7. Shell Programming and Scripting

ps showing inconsistent process start time

Not sure if it makes a difference but "foo" is a java process. The start time reported by various flavors of ps seems to be flopping back and forth by a minute. I have many (a few hundred) "foo" like processes which tend to be somewhat unstable and get restarted somewhat frequently, I wrote a... (2 Replies)
Discussion started by: jstrangfeld
2 Replies

8. UNIX for Dummies Questions & Answers

how to get start time of a running process

I am trying to see if a process is running what was its start time. here is the code that I am using if then echo 'Gateway output processing started.' else VAR=$(ps -ef | grep batch_output_x ) ... fi now the problem i see is when the process is running i get two... (3 Replies)
Discussion started by: akabir77
3 Replies

9. Shell Programming and Scripting

How to calculate time difference between start and end time of a process!

Hello All, I have a problem calculating the time difference between start and end timings...! the timings are given by 24hr format.. Start Date : 08/05/10 12:55 End Date : 08/09/10 06:50 above values are in mm/dd/yy hh:mm format. Now the thing is, 7th(08/07/10) and... (16 Replies)
Discussion started by: smarty86
16 Replies

10. Red Hat

NFS does not start during boot process

Hello, I am facing some issues during boot process of rhel 6.2 It takes too long time (~10 min) for the node to come up... The boot process stuck while it trying to start NFS and does not continue until timeout. In the boot.log file i see Starting NFS quotas: Cannot register service:... (2 Replies)
Discussion started by: @dagio
2 Replies
PPPCONFIG(8)						      System Manager's Manual						      PPPCONFIG(8)

NAME
pppconfig - configure pppd to connect to the Internet SYNOPSIS
pppconfig [--version] | [--help] | [[--dialog] | [--whiptail] | [--gdialog] [--noname] | [providername]] DESCRIPTION
pppconfig is a dialog based interactive, menu driven utility to help automate setting up a dial out ppp connection. It provides extensive explanations at each step. pppconfig supports PAP, CHAP, and chat methods of authentication. It uses the standard ppp configuration files and sets ppp up so that the standard pon and poff commands can be used to control ppp. Some features supported by pppconfig are: - Multiple ISP's with separate nameservers. - Modem detection. - Dynamic DNS. - Dial on demand. - Allow non-root users to run ppp. - Uses the gdialog GUI dialog replacement if possible. Before running pppconfig you should know what sort of authentication your isp requires, the username and password that they want you to use, and the phone number. If they require you to use chat authentication, you will also need to know the login and password prompts and any other prompts and responses required for login. If you can't get this information from your isp you could try dialing in with minicom and working through the procedure until you get the garbage that indicates that ppp has started on the other end. pppconfig allows you to configure connections to multiple providers. For example, you might call your isp 'provider', your employer 'the- office' and your university 'theschool'. Then you can connect to your isp with 'pon', your office with 'pon theoffice', and your univer- sity with 'pon theschool'. It can determine which serial port your modem is on, but the serial port must already be configured. This is normally done when installing Linux. It can help you set your nameservers, or, if your ISP uses 'dynamic DNS', it can set up ppp to use that. It can configure ppp for demand dialing, so that your ppp connection will come up automatically. It will not, however, start pppd for you. You must still start pppd yourself ('pon' will do it). Pppd will then wait in the background for you to attempt to access the Net and bring up the link. If you select "Static" in the "Configure Nameservers" screen pppconfig will create a file in the /etc/ppp/resolv directory named after the provider you are configuring and containing "nameserver" lines for each of the IP numbers you gave. This file will be substituted for /etc/resolv.conf when the connection comes up. The provider name is passed in the ipparam variable so that 0dns-up knows which file to use. The original resolv.conf will be put back when the connection goes down. You can edit this file if you wish and add such things as "search" or "domain" directives or additional nameservers. Be sure and read the resolv.conf man page first, though. The "search" and "domain" directives probably do not do what you think they do. If you select "dynamic" in the "Configure Nameservers" screen pppconfig will configure pppd for 'dynamic DNS' and create a file in the /etc/ppp/resolv directory named after the provider you are configuring but containing nothing. When the connection comes up the name- servers supplied by your ISP will be added and the file substituted for /etc/resolv.conf. You can edit this file if you wish and add such things as "search" or "domain" directives or additional nameservers. If you select "None" in the "Configure Nameservers" screen pppconfig will create no file in /etc/ppp/resolv and will leave /etc/resolv.conf alone. ipparam is not set to the provider name and so is free for the administrator to use. FILES
/etc/ppp/peers/provider is the standard pppd options file for the default service provider. /etc/ppp/peers/<name> is the pppd options file for the provider that you have named <name>. /etc/ppp/peers/provider.bak is a backup copy of /etc/ppp/peers/provider. /etc/chatscripts/provider is the standard chat script for the default service provider. /etc/chatscripts/<name> is the chat script for the provider that you have named <name>. /etc/chatscripts/provider.bak is a backup copy of /etc/chatscripts/provider. /etc/ppp/resolv is a directory where resolv.conf files for each provider are stored. /etc/ppp/ip-up.d/0dns-up is a script that arranges for the correct resolv.conf file to be copied into place when a connection comes up. /etc/ppp/ip-down.d/0dns-down is a script that arranges for the original resolv.conf file to be copied into place when a connection goes down. /etc/init.d/dns-clean is a script that runs 0dns-down at bootup to clean up any mess left by a crash. /var/run/pppconfig is a directory where temporary files created by 0dns-up are stored. /var/run/pppconfig/resolv.conf.bak.<provider> is a backup copy of the original resolv.conf file. 0dns-down restores /etc/resolv.conf from it. /var/run/pppconfig/0dns.<provider> is a backup copy of the resolv.conf file for <provider>. 0dns-down uses it to determine if /etc/resolv.conf has been overwritten by another process. /etc/ppp/pap-secrets and /etc/ppp/chap-secrets are described in the pppd documentation. pppconfig may add lines to these files and will change lines that it previously added. NOTES
pppconfig requires pppd 2.3.7 or higher. TO DO
Add full support for MSCHAP. BUGS
Don't tell pppconfig to find your modem while pppd is running. SEE ALSO
chat(8), gpppon(1), plog(1), poff(1), pon(1), pppd(8), and whiptail(1). AUTHOR
pppconfig was written by John Hasler <jhasler@debian.org>. COPYRIGHT
This man page may be treated as if it were in the public domain. I waive all rights. Debian GNU/Linux Version 2.3.16 PPPCONFIG(8)
All times are GMT -4. The time now is 03:09 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy