The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
.
google unix.com



UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
error in init script of dnotify service pankajd Shell Programming and Scripting 0 12-14-2007 02:53 AM
Creating a Solaris10 service Tornado Tips and Tutorials 0 11-16-2006 07:40 PM
Init 6 & Init 0 problem sc2005 UNIX for Advanced & Expert Users 6 09-06-2005 10:36 AM
I cannot init kde elfyl Linux 3 08-09-2005 09:17 PM
init.d BC_Kevin UNIX for Dummies Questions & Answers 1 11-22-2000 03:03 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 09-10-2004
collins's Avatar
collins collins is offline
Registered User
  
 

Join Date: Aug 2004
Posts: 43
Question creating a service in init.d

Hai Friends

I have written a DayTime server program using C socket.. I need to start the service automatically. My service directory is /etc/rc.d/init.d... my service name is DayTime present in /home/codebase/datetime/ directory.. Please help me


Thanks in advance
  #2 (permalink)  
Old 09-30-2004
RTM's Avatar
RTM RTM is offline Forum Advisor  
Hog Hunter
  
 

Join Date: Apr 2002
Location: On my motorcycle
Posts: 3,039
What OS and version???

See your man page for init.d and/or inittab


Example of change to inittab to start process via init.d:
v1:3:respawn:/opt/nms/vspan/vstail /opt/OV/log/trapd.log
  #3 (permalink)  
Old 09-30-2004
zazzybob's Avatar
zazzybob zazzybob is offline Forum Advisor  
Registered Geek
  
 

Join Date: Dec 2003
Location: Melbourne, Australia
Posts: 2,100
Or else, place a "control" script in /etc/rc.d/init.d (look at the others to see how they're constructed), and then put the appropriate K* and S* symlinks in the runlevel directories.

As RTM says, OS and version please!
Sponsored Links
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 07:21 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language translation by Google.
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0