Jump to content

News: Blacknova Traders


NiteShdw
 Share

Recommended Posts

  • Replies 670
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

Ok neither of them worked lol.

 

I am wondering if it's maybe in the /etc/ folder instead. There is a crontab file but that didn't work. There are also:

 

- crontab.d

- crontab.daily

- crontab.weekly

- crontab.monthly

 

folders in this directory as well.

Link to comment
Share on other sites

2 ways come to mind easiest is to use crond - just checked and lighttp uses crond

 

or you could try doing this

 

mkdir /etc/cron.2mins

 

open /etc/crontabs/root

 

edit it to include

 

*/2 * * * * /usr/bin/run-parts /etc/cron.2mins

 

Having created this config-file, all that is needed is the command "run-parts" creat a small script run-parts and place in /usr/bin

A script like this will do the job:

#!/bin/sh

#

# intended for use with cron

#

if [ -z "$1" ]

then

echo "Usage : $0 "

fi

 

RUNDIR=$1"/*"

 

for i in $RUNDIR ;do

[ ! -f "$i" ] && continue

case "$i" in

*.sh)

(

trap - INT QUIT TSTP

set start

. $i

)

;;

*)

$i start

;;

esac

done

 

Remember to chmod the script to be executable :

chmod +x /usr/bin/run-parts

 

 

All that is left to do, is to ensure the cron system get stated at boot-time.

Create the file /etc/init.d/S61crond containing:

#!/bin/sh

crond -c /etc/crontabs -b

 

 

Make the file executable :

chmod +x /etc/init.d/S61crond

This should be it!

 

In order to test the cron-system, you could try to make a small script in /etc/cron.2mins called test.sh, like this :

#!/bin/sh

 

date >> /tmp/crontest.txt

 

 

Remember to make it excutable :

chmod 755 /etc/cron.2mins/test.sh

 

 

Link to comment
Share on other sites

  • 2 weeks later...

yeah that can be addressed by placing it central :) I've set up a forum at deadzone for ideas an bugs btw if anyone wants to get involved click the link i posted in my last post and then goto the forum :) I will be putting an alpha version up on march 1st btw so if anyone wants to look over the code feel free to take it. will keep you informed here

Link to comment
Share on other sites

I like the fix. only complaint now, is the snarky look of some ships, ugh.

some are sharp and snazzy but some are like whoa, get out to the junk yard...

so you're volunteering to fix the ship images?  great! ;)

Link to comment
Share on other sites

I like the fix. only complaint now, is the snarky look of some ships, ugh.

some are sharp and snazzy but some are like whoa, get out to the junk yard...

so you're volunteering to fix the ship images?  great! ;)

 

hmmm, do I have originals to work with?

Link to comment
Share on other sites

lol no to originals an theres also copyright issues about that too :( the ships i have are from gunslinger and i have his permission to use his graphics but yeah I'm open to new ships if anyone can do the artwork (i suck at art lol) also the side panel themes are in need of some artistic skills. I'm trying to standardise it so the css files are the same except for the directories which will be the same as the css file title (useful as a programmer :)) i have a mate who does graphic design who i worked with in the past on websites so I'm gonna ask him for his artistic inspiration :) hope he can at least do a few themes for DeadZone and maybe some ships :) the DeadZone project is at an exciting point at the moment with new ideas being introduced on a regular basis. there is an alpha version available at the moment that installs over the top of BNT 0.55 TFMF but I'm working on the artwork at the moment so it would probably be wise if you leave it a few weeks before using it on here. again if anyone would like to be involved in the development side of this be it testing programming or artwork join my forum at http://deadzone.co.nr feel free to join the game also but be aware although the game is due for a reset on may the 4th it could be reset at anytime if a new feature requires it (unlikely tho for a while tbh but i do plan on doing alliance teams with unique ships and that will need the database tables modified)

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
 Share


×
×
  • Create New...