

* modyfikacja /etc/fstab 

nalezy dopisac do /etc/fstab linię:

tmpfs /opt/zeletronik/ramdisk tmpfs size=64M,nr_inodes=10k,mode=1777 0 0

moje fstab:
------------------
# /etc/fstab: static file system information.
#
# Use 'blkid -o value -s UUID' to print the universally unique identifier
# for a device; this may be used with UUID= as a more robust way to name
# devices that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc            /proc           proc    nodev,noexec,nosuid 0       0
# / was on /dev/sda2 during installation
UUID=5a2f579c-938d-4ff8-a16a-c19c63c4d670 /               ext4    errors=remount-ro 0       1
# /ahome was on /dev/sda3 during installation
UUID=da968d0c-f36e-4ca4-ac80-646810dbfce1 /ahome          ext4    defaults        0       2

# /ahome was on /dev/sda3 during installation
UUID=0228add1-35c8-4aae-9568-c53f3692e3b9 /data          ext4    defaults        0       
# swap was on /dev/sda5 during installation
UUID=ade78cb4-3ff1-408a-86fc-8f2b92a63dca none            swap    sw              0       0
/dev/fd0        /media/floppy0  auto    rw,user,noauto,exec,utf8 0       0
tmpfs /opt/zeletronik/ramdisk tmpfs size=64M,nr_inodes=10k,mode=1777 0 0 
-----------

* modyfikacja /etc/init.d/rc.local

aby program startował z systemem

dopisac  linie do /etc/rc.local (opcja -vv tworzy logi diagnostyczne)

/opt/zeletronik/bin/lin4leic -vv &


mój rc.local
----------------
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.
/etc/init.d/firebird start &

# wpis dla programu lin4leic
/opt/zeletronik/bin/lin4leic &

exit 0
---------------


** skrypty

letronikSyncFtp.sh - sychronizacja katalogu na FTP
indexFTP.sh - tworzenie indeksu raportów na FTP

* uruchamiac w zadanym casie za pomoca CRON-a

dopisywanie do zadan w tablicy crontab

sprawdzanie istniejącego crontab

les@c2006:/$ sudo crontab -l

zmiana crontab

les@c2006:~$ sudo crontab -e

Przykładowe krontab:

les@c2006:~$ sudo crontab -l
# m h  dom mon dow   command
#tworzenie rapotow licznika osob
5 * * * *                                       /opt/zeletronik/bin/lin4leic_rep
7 * * * *                                       /opt/zeletronik/bin/letronikSyncFtp.sh
8 9,12 * * *                                       /opt/zeletronik/bin/indexFTP.sh
les@c2006:~$ 
                                  /opt/zeletronik/bin/lin4leic_rep


** sprawdzanie czy program wystartował z systemem

les@c2006:~$ ps axu | grep lin4leic
root      1352  0.0  0.0   1764   540 ?        S    10:53   0:00 /opt/zeletronik/bin/lin4leic
les       1867  0.0  0.0   3344   892 pts/1    S+   10:56   0:00 grep --color=auto lin4leic
les@c2006:~$ 

wystartował i ma pid 1352.

proces 1867 odpowiada komendzie ps axu | grep lin4leic.



