![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Startup scripts | kafaween | HP-UX | 5 | 06-08-2009 03:22 AM |
| Understanding System Vish startup scripts | darkmatter14B | UNIX for Dummies Questions & Answers | 0 | 02-28-2008 05:36 PM |
| How to solve screwing startup scripts | akzin | UNIX for Advanced & Expert Users | 12 | 07-11-2007 05:50 AM |
| Adding PATH variable in the startup scripts | rajanishshetty | UNIX for Dummies Questions & Answers | 5 | 03-02-2007 12:51 PM |
| Startup/Shutdown scripts | vincente | AIX | 1 | 05-23-2006 01:30 PM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
startup scripts, how do they work in UNIX?
I need to make a script to start the postfix service on a server when the machine starts up.
I have a script written below, which I think will work, but I am confused on how the rc2.d & rc3.d etc directories actually work. If I enter the script below, and stick it in the rc3.d directory, will it start the postfix service? What i am confused on is, does the S25postfix filename tell the system to run the script with the start option? and the K25postfix tell the system to run it with the stop option? here is the script, will this work if i drop it into the proper rc directories with the K or S prefix? #!/sbin/sh # # # # #START POSTFIX SERVCIES case "$1" in 'start') /usr/sbin/postfix start ;; 'stop') /usr/sbin/postfix stop ;; *) echo "Usage: $0 { start | stop }" ;; esac exit 0 |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|