/etc/init.d e aşağıdakini ftwda dosya adıyla kaydet (örnek)
#!/bin/bash
# chkconfig: 345 95 10
# description: ftwda test
# processname: ftwda
# pidfile: /var/run/ftwda.pid
case "$1" in
start)
uygulanacaklar buraya
;;
stop)
durduğunda uygulanacak komutlar, boş bırakabilirsiniz
;;
restart)
$0 stop
$0 start
;;
*)
echo "usage: $0 (start|stop|restart)"
;;
esacchmod +x ftwda yap ardından "chkconfig ftwda on" ile aktifleştir.