SUN-Jail – Solaris 10 convicted ! Part III Dammit… this friggin thing doesn’t restart @ boot-time !!!

Ok well I was not expecting to have a Part III, but I forgot some pretty important stuff… I guess I am so used to working with Linux where all of this manual crap is a “given,” meaning it is already configured to do what you would expect it to do… I got lazy and didn’t check the start-up scripts… and of course, on Solaris 10 at least, proftpd doesn’t just start on it’s own…  So here are the steps to make that happen for you as well as the start-up script I am currently using… Oh, and make sure that in your proftpd config file, you have proftpd set as a standalone server…

# cat /usr/local/etc/proftpd.conf|grep ServerType
ServerType                      standalone
Go out and make this file in /etc/init.d
# vi /etc/init.d/proftpd
case $1 in
'start' )
'stop' )
kill `ps -ef | grep proftpd | grep -v grep | awk '{print $2}'` > /dev/null 2>&1
echo "usage: $0 {start|stop}"
# chmod 744 /etc/init.d/proftpd
# ln -s /etc/init.d/proftpd /etc/rc3.d/S99proftpd
# ln -s /etc/init.d/proftpd /etc/rc1.d/K99proftpd

I have webmin installed here so I went in to test the scripts from the “System” dashboard under “Bootup and Shutdown” just to make sure it works, obviously you can reboot as well as the final test for proper functionality.  Sorry for the omissions 😦


, , , , , , , ,

  1. #1 by Jim Smithson on April 3, 2012 - 4:11 pm

    Thanks. This post was very useful

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: