Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > HOWTO-Related Questions

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #11  
Old 8th August 2007, 11:43
geekman geekman is offline
Member
 
Join Date: Sep 2006
Location: Sydney, Australia
Posts: 56
Thanks: 1
Thanked 10 Times in 10 Posts
Send a message via ICQ to geekman Send a message via MSN to geekman
 
Default

Oh yes, it is in fact just a bash script the system will execute, so you need the shebang line. Something like the following:

Code:
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.
mkdir /var/lock/mrtg/
exit 0
You can see here that I have told the system to make the /var/lock/mrtg directory on startup as that was an issue when trying to create a file for mrtg when it started up.

Thanks.
Reply With Quote
The Following User Says Thank You to geekman For This Useful Post:
klonos (8th August 2007)
Sponsored Links
Reply

Bookmarks

Thread Tools
Display Modes

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
postfix problems with smtp linkdeb Server Operation 13 15th March 2014 17:58
Can't connect to Courier-IMAP dekat Server Operation 11 2nd May 2007 15:00
maildir not created t_ras Installation/Configuration 3 1st July 2006 12:52
Internet Mail Problem deezone Installation/Configuration 9 22nd February 2006 21:09
Virtual Users + Domains With Postfix etc. byw HOWTO-Related Questions 6 20th February 2006 10:10


All times are GMT +2. The time now is 13:45.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.