initscript again


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers initscript again
# 1  
Old 04-10-2004
initscript again

hi...thanx all of you for clearing out my previous doubts....but i have some more
in the following,
reload() {
echo -n $"Reloading cron daemon configuration: "
killproc crond -HUP
retval=$?
echo
return $RETVAL

1. why is echo used here without any arguments???
2.what does the argument -HUP do here?

this is the crond script....
any answers???

also if i have to write my own server startup script, what should i do?
# 2  
Old 04-10-2004
1. It appears that echo is just being used to throw a newline.
2. As for the kill -HUP. Take a look at a brief outlook from man -s 3head signal

SIGHUP 1 Exit Hangup (see termio(7I))

A Hangup tells most daemons to re-read their configuration files.

Keith
 
Login or Register to Ask a Question

Previous Thread | Next Thread

2 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

initscript questions

can anyone tell me what the following mean..... 1. ! bash/bin and what is its significance... 2. what are runlevels like 1, 2, 3, 4....what do they mean??? this was picked up from the /etc/init.d/crond file......its an initscript. (5 Replies)
Discussion started by: urwannabefriend
5 Replies

2. UNIX for Dummies Questions & Answers

initscript

hi...my project requires me to open the initscript of any server or daemon like xinetd and understand all the init tags etc and the coding that i have no idea about....any suggestions on how to proceed??? (2 Replies)
Discussion started by: urwannabefriend
2 Replies
Login or Register to Ask a Question