LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Debian startup script (https://www.linuxquestions.org/questions/linux-newbie-8/debian-startup-script-873508/)

ust 04-07-2011 01:05 AM

Debian startup script
 
I want to run a script when the server startup , I ususally add to rc.local for my Redhat server , can advise how to set at Debain ? thx

austinium 04-07-2011 01:34 AM

you can place it in /etc/rc.local

ust 04-08-2011 05:58 AM

thx reply , I can't find rc.local in my debian server ( my redhat have it ) , I can create it ?

austinium 04-09-2011 03:33 AM

yes you can create /etc/rc.local yourself, do remember to add
Code:

#!/bin/bash
on the first line

and do
Code:

#chmod 755 /etc/rc.local

thank you s_i_m (Debian IRC) for clarifying this


All times are GMT -5. The time now is 07:35 PM.